mastro 1.0.0
mastro: ^1.0.0 copied to clipboard
A highly customizable Flutter widget that provides beautiful press animations and effects for any child widget. Perfect for creating interactive UI elements with minimal effort.
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(),
),
));
}