first commit
This commit is contained in:
22
untitled/lib/router/AppNode.dart
Normal file
22
untitled/lib/router/AppNode.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_modular/flutter_modular.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
|
||||
/*
|
||||
* 根组件
|
||||
*/
|
||||
class AppNode extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ScreenUtilInit(
|
||||
designSize: Size(375, 667),
|
||||
allowFontScaling: false,
|
||||
child: MaterialApp(
|
||||
initialRoute: "/",
|
||||
navigatorKey: Modular.navigatorKey,
|
||||
onGenerateRoute: Modular.generateRoute,
|
||||
debugShowCheckedModeBanner: false,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user