add contact page
This commit is contained in:
46
lib/app.dart
46
lib/app.dart
@@ -1,5 +1,6 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:fcs/fcs/common/helpers/theme.dart';
|
||||
import 'package:fcs/fcs/common/localization/app_translations_delegate.dart';
|
||||
import 'package:fcs/fcs/common/localization/transalation.dart';
|
||||
import 'package:fcs/fcs/common/pages/model/language_model.dart';
|
||||
@@ -19,6 +20,7 @@ import 'package:fcs/model_fcs/message_model.dart';
|
||||
import 'package:fcs/model_fcs/package_model.dart';
|
||||
import 'package:fcs/pages/email_page.dart';
|
||||
import 'package:fcs/pages/login_page.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
|
||||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||||
@@ -242,18 +244,36 @@ class _AppState extends State<App> {
|
||||
ChangeNotifierProvider.value(value: testModel),
|
||||
ChangeNotifierProvider.value(value: mainModel2),
|
||||
],
|
||||
child: MaterialApp(
|
||||
debugShowCheckedModeBanner: false,
|
||||
title: 'FCS',
|
||||
routes: route(context),
|
||||
theme: ThemeData(accentColor: Colors.black),
|
||||
localizationsDelegates: [
|
||||
_newLocaleDelegate,
|
||||
//provides localised strings
|
||||
GlobalMaterialLocalizations.delegate,
|
||||
//provides RTL support
|
||||
GlobalWidgetsLocalizations.delegate,
|
||||
],
|
||||
supportedLocales: Translation().supportedLocales()));
|
||||
child: Consumer<LanguageModel>(
|
||||
builder: (context, value, child) {
|
||||
return CupertinoApp(
|
||||
debugShowCheckedModeBanner: false,
|
||||
title: 'FCS',
|
||||
theme: CupertinoThemeData(
|
||||
textTheme: CupertinoTextThemeData(
|
||||
navActionTextStyle: TextStyle(color: Colors.white),
|
||||
navTitleTextStyle: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: value.isEng ? 20 : 18,
|
||||
fontWeight: FontWeight.bold),
|
||||
navLargeTitleTextStyle: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: value.isEng ? 40 : 24,
|
||||
fontWeight: FontWeight.bold),
|
||||
primaryColor: primaryColor,
|
||||
textStyle: TextStyle(color: Colors.white),
|
||||
actionTextStyle: TextStyle(color: Colors.white),
|
||||
)),
|
||||
routes: route(context),
|
||||
localizationsDelegates: [
|
||||
_newLocaleDelegate,
|
||||
//provides localised strings
|
||||
GlobalMaterialLocalizations.delegate,
|
||||
//provides RTL support
|
||||
GlobalWidgetsLocalizations.delegate,
|
||||
],
|
||||
supportedLocales: Translation().supportedLocales());
|
||||
},
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user