enhanced_containers 0.1.0 copy "enhanced_containers: ^0.1.0" to clipboard
enhanced_containers: ^0.1.0 copied to clipboard

A collection of enhanced containers for Dart and Flutter. It is particularly suitable for easy providers linked to database.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

import './providers/list_of_my_random_item.dart';
import './providers/map_of_my_random_item.dart';
import './screens/main_screen.dart';
import './screens/shared_data_first_screen.dart';
import './screens/shared_data_second_screen.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MultiProvider(
        providers: [
          ChangeNotifierProvider(create: (context) => ListOfMyRandomItem()),
          ChangeNotifierProvider(create: (context) => MapOfMyRandomItem()),
        ],
        child: MaterialApp(
          title: 'Enhanced containers demo',
          initialRoute: MainScreen.route,
          routes: {
            MainScreen.route: (context) => const MainScreen(),
            SharedDataFirstScreen.route: (context) =>
                const SharedDataFirstScreen(),
            SharedDataSecondScreen.route: (context) =>
                const SharedDataSecondScreen(),
          },
        ));
  }
}
1
likes
140
points
28
downloads

Publisher

unverified uploader

Weekly Downloads

A collection of enhanced containers for Dart and Flutter. It is particularly suitable for easy providers linked to database.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

firebase_database, flutter, nanoid

More

Packages that depend on enhanced_containers