moor_flutter 4.0.0-nullsafety copy "moor_flutter: ^4.0.0-nullsafety" to clipboard
moor_flutter: ^4.0.0-nullsafety copied to clipboard

discontinuedreplaced by: drift_sqflite
outdated

Flutter implementation of moor, a safe and reactive persistence library for Dart applications

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:moor_example/bloc.dart';
import 'package:provider/provider.dart';
import 'widgets/homescreen.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Provider<TodoAppBloc>(
      create: (_) => TodoAppBloc(),
      dispose: (_, bloc) => bloc.close(),
      child: MaterialApp(
        title: 'moor Demo',
        theme: ThemeData(
          primarySwatch: Colors.orange,
          typography: Typography.material2018(),
        ),
        home: HomeScreen(),
      ),
    );
  }
}
312
likes
0
points
1.34k
downloads

Publisher

verified publishersimonbinder.eu

Weekly Downloads

Flutter implementation of moor, a safe and reactive persistence library for Dart applications

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, moor, path, sqflite

More

Packages that depend on moor_flutter