base_frame 1.0.0
base_frame: ^1.0.0 copied to clipboard
A comprehensive Flutter base architecture plugin providing BLoC pattern implementation, network handling, localization, dependency injection, and reusable UI components for rapid app development.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:base_frame/imports/localization_imports.dart';
import 'core/constants.dart';
import 'inject/injector.dart';
import 'ui/home/home_screen.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Injector.setup();
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
navigatorKey = GlobalKey<NavigatorState>();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
navigatorKey: navigatorKey,
debugShowCheckedModeBanner: false,
home: const HomeScreen(),
supportedLocales: AppConstants.localizationList.toLocaleList(),
);
}
}