Update: lib/main.dart
This commit is contained in:
parent
00d56530a0
commit
86eef84718
|
@ -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,
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue