lifecycle_capsules 1.0.3
lifecycle_capsules: ^1.0.3 copied to clipboard
Easily manage lifecycle-aware objects and operations in Flutter, preventing code duplication and simplifying resource handling.
import 'package:flutter/material.dart';
import 'home_screen.dart';
void main() async{
WidgetsFlutterBinding.ensureInitialized();
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: HomeScreen(),
theme: ThemeData(
appBarTheme: AppBarTheme(
titleTextStyle: TextStyle(
color: Colors.black,
fontSize: 16,
fontWeight: FontWeight.bold,
),
),
inputDecorationTheme: InputDecorationTheme(
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(10),
borderSide: BorderSide(color: Colors.grey),
),
)
),
);
}
}