add app title
This commit is contained in:
23
lib/app.dart
23
lib/app.dart
@@ -33,7 +33,10 @@ import 'package:provider/provider.dart';
|
||||
import 'pages/delivery/model/delivery_model.dart';
|
||||
|
||||
class App extends StatefulWidget {
|
||||
@override
|
||||
final String title;
|
||||
|
||||
const App({super.key, required this.title});
|
||||
@override
|
||||
_AppState createState() => _AppState();
|
||||
}
|
||||
|
||||
@@ -136,22 +139,8 @@ class _AppState extends State<App> {
|
||||
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.w600),
|
||||
// navLargeTitleTextStyle: TextStyle(
|
||||
// color: Colors.white,
|
||||
// fontSize: value.isEng ? 40 : 24,
|
||||
// fontWeight: FontWeight.w600),
|
||||
// primaryColor: primaryColor,
|
||||
// textStyle: TextStyle(color: Colors.white),
|
||||
// actionTextStyle: TextStyle(color: Colors.white),
|
||||
// )),
|
||||
theme: CupertinoThemeData(),
|
||||
title: widget.title,
|
||||
routes: route(context),
|
||||
localizationsDelegates: [
|
||||
_newLocaleDelegate,
|
||||
|
||||
Reference in New Issue
Block a user