|
|
|
@ -2,6 +2,7 @@ import 'dart:io' show Platform;
|
|
|
|
|
|
|
|
|
|
import 'package:flutter/cupertino.dart'; |
|
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
|
import 'package:flutter/services.dart'; |
|
|
|
|
// import 'package:flutter_redux/flutter_redux.dart'; |
|
|
|
|
import 'package:info_tren/models/ui_design.dart'; |
|
|
|
|
import 'package:info_tren/pages/main/main_page.dart'; |
|
|
|
@ -55,18 +56,23 @@ class StartPoint extends StatelessWidget {
|
|
|
|
|
@override |
|
|
|
|
Widget build(BuildContext context) { |
|
|
|
|
if (Platform.isIOS || Platform.isMacOS) { |
|
|
|
|
return CupertinoApp( |
|
|
|
|
title: appTitle, |
|
|
|
|
theme: CupertinoThemeData( |
|
|
|
|
primaryColor: Colors.blue.shade600, |
|
|
|
|
brightness: Brightness.dark, |
|
|
|
|
// textTheme: CupertinoTextThemeData( |
|
|
|
|
// textStyle: TextStyle( |
|
|
|
|
// fontFamily: 'Atkinson Hyperlegible', |
|
|
|
|
// ), |
|
|
|
|
// ), |
|
|
|
|
return AnnotatedRegion( |
|
|
|
|
value: const SystemUiOverlayStyle( |
|
|
|
|
statusBarBrightness: Brightness.dark, |
|
|
|
|
), |
|
|
|
|
child: CupertinoApp( |
|
|
|
|
title: appTitle, |
|
|
|
|
theme: CupertinoThemeData( |
|
|
|
|
primaryColor: Colors.blue.shade600, |
|
|
|
|
brightness: Brightness.dark, |
|
|
|
|
// textTheme: CupertinoTextThemeData( |
|
|
|
|
// textStyle: TextStyle( |
|
|
|
|
// fontFamily: 'Atkinson Hyperlegible', |
|
|
|
|
// ), |
|
|
|
|
// ), |
|
|
|
|
), |
|
|
|
|
routes: routesByUiDesign(UiDesign.CUPERTINO), |
|
|
|
|
), |
|
|
|
|
routes: routesByUiDesign(UiDesign.CUPERTINO), |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|