drift_sqflite 1.0.0 copy "drift_sqflite: ^1.0.0" to clipboard
drift_sqflite: ^1.0.0 copied to clipboard

outdated

A Flutter-only implementation of a drift database, based on the `sqflite` package.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Provider<TodoAppBloc>(
      create: (_) => TodoAppBloc(),
      dispose: (_, bloc) => bloc.close(),
      child: MaterialApp(
        title: 'Drift Demo',
        theme: ThemeData(
          primarySwatch: Colors.orange,
          typography: Typography.material2018(),
        ),
        home: const HomeScreen(),
      ),
    );
  }
}
21
likes
150
pub points
93%
popularity

Publisher

verified publishersimonbinder.eu

A Flutter-only implementation of a drift database, based on the `sqflite` package.

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

drift, flutter, path, sqflite

More

Packages that depend on drift_sqflite