mastro 0.9.1 copy "mastro: ^0.9.1" to clipboard
mastro: ^0.9.1 copied to clipboard

Transform Flutter state management into an art form with Mastro the elegant conductor of your app's data symphony

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:mastro/mastro.dart';
import 'package:mastro_example/features/notes/presentation/notes_view.dart';

import 'features/notes/logic/notes_box.dart';

// Initialize the app with persistent storage
void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await MastroInit.initialize();

  runApp(MaterialApp(
    theme: ThemeData(useMaterial3: true),
    home: MultiBoxProvider(
      providers: [
        BoxProvider(
          create: (context) => NotesBox(),
        )
      ],
      child: const NotesView(),
    ),
  ));
}
3
likes
0
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

Transform Flutter state management into an art form with Mastro the elegant conductor of your app's data symphony

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, provider, shared_preferences

More

Packages that depend on mastro