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

A robust state management solution for Flutter that seamlessly integrates reactive programming with event handling and persistence capabilities.

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
49
downloads

Publisher

unverified uploader

Weekly Downloads

A robust state management solution for Flutter that seamlessly integrates reactive programming with event handling and persistence capabilities.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, provider, shared_preferences

More

Packages that depend on mastro