moor_flutter 4.1.0 copy "moor_flutter: ^4.1.0" to clipboard
moor_flutter: ^4.1.0 copied to clipboard

discontinuedreplaced by: drift_sqflite

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
160
pub points
93%
popularity

Publisher

verified publishersimonbinder.eu

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

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

flutter, moor, path, sqflite

More

Packages that depend on moor_flutter