mastro 0.9.7 copy "mastro: ^0.9.7" to clipboard
mastro: ^0.9.7 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(),
    ),
  ));
}
4
likes
160
points
93
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

Documentation

API reference

License

MIT (license)

Dependencies

flutter, provider, shared_preferences

More

Packages that depend on mastro