29 lines
724 B
Dart
29 lines
724 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:sqflite_common_ffi/sqflite_ffi.dart';
|
|
import 'screens/product_list_screen.dart';
|
|
|
|
void main() {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
sqfliteFfiInit();
|
|
runApp(const MyApp());
|
|
}
|
|
|
|
class MyApp extends StatelessWidget {
|
|
const MyApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: 'مدیریت کالا',
|
|
theme: ThemeData(
|
|
primarySwatch: Colors.blue,
|
|
appBarTheme: const AppBarTheme(
|
|
backgroundColor: Colors.blueAccent,
|
|
foregroundColor: Colors.white,
|
|
),
|
|
),
|
|
home: const ProductListScreen(),
|
|
debugShowCheckedModeBanner: false,
|
|
);
|
|
}
|
|
} |