lifecycle_capsules 1.0.0 copy "lifecycle_capsules: ^1.0.0" to clipboard
lifecycle_capsules: ^1.0.0 copied to clipboard

Easily manage lifecycle-aware objects and operations in Flutter, preventing code duplication and simplifying resource handling.

example/lib/main.dart

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),
          ),
        )
      ),
    );
  }
}
1
likes
0
points
181
downloads

Publisher

unverified uploader

Weekly Downloads

Easily manage lifecycle-aware objects and operations in Flutter, preventing code duplication and simplifying resource handling.

Repository (GitHub)
View/report issues

Topics

#lifecycle #capsules #flutter-hooks

Documentation

Documentation

License

unknown (license)

Dependencies

flutter

More

Packages that depend on lifecycle_capsules