Update: lib/main.dart

This commit is contained in:
Hadi Mottale 2025-07-08 12:40:51 +03:30
parent 00d56530a0
commit 86eef84718
1 changed files with 10 additions and 8 deletions

View File

@ -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,
);
}
}