add app title

This commit is contained in:
2024-01-23 15:15:07 +06:30
parent dde24bb248
commit a91ee596cb
7 changed files with 16 additions and 170 deletions

View File

@@ -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,