diff --git a/lib/main.dart b/lib/main.dart index 98d2fb7..6529b7b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,12 +1,10 @@ import 'package:flutter/material.dart'; import 'package:sqflite_common_ffi/sqflite_ffi.dart'; import 'screens/product_list_screen.dart'; -import 'screens/add_edit_product_screen.dart'; -void main() async { +void main() { WidgetsFlutterBinding.ensureInitialized(); sqfliteFfiInit(); - databaseFactory = databaseFactoryFfi; runApp(const MyApp()); } @@ -16,12 +14,16 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( - title: 'ابزار ساده ثبت کالا', + title: 'مدیریت کالا', theme: ThemeData( - primarySwatch: Colors.blueGrey, - visualDensity: VisualDensity.adaptivePlatformDensity, + primarySwatch: Colors.blue, + appBarTheme: const AppBarTheme( + backgroundColor: Colors.blueAccent, + foregroundColor: Colors.white, + ), ), - home: ProductListScreen(), + home: const ProductListScreen(), + debugShowCheckedModeBanner: false, ); } -} +} \ No newline at end of file