app_scene.dart 692 B

1234567891011121314151617181920212223
  1. import 'package:flutter/material.dart';
  2. import 'package:shuqi/public.dart';
  3. import 'package:shuqi/index_page.dart';
  4. final RouteObserver<PageRoute> routeObserver = RouteObserver<PageRoute>();
  5. class MyApp extends StatelessWidget {
  6. @override
  7. Widget build(BuildContext context) {
  8. return MaterialApp(
  9. title: '书旗小说',
  10. navigatorObservers: [routeObserver],
  11. debugShowCheckedModeBanner: false,
  12. theme: ThemeData(
  13. primaryColor: Colors.white,
  14. dividerColor: Color(0xffeeeeee),
  15. scaffoldBackgroundColor: SQColor.paper,
  16. textTheme: TextTheme(bodyLarge: TextStyle(color: SQColor.darkGray)),
  17. ),
  18. home: IndexPage(),
  19. );
  20. }
  21. }