Skip to main content

b012_data 2.1.0 copy "b012_data: ^2.1.0" to clipboard
b012_data: ^2.1.0 copied to clipboard

Spring Boot-inspired Flutter package with auto-generated SQLite CRUD for your entities, file helpers and optional encryption. Android, iOS, Linux, macOS, Windows, web.

example/main.dart

// -----------------------------------------------------------------------------
// b012_data — Full example entry point
//
// Each concern has its own self-contained, runnable file:
//
//   * `sqlite_example.dart` — SQLite CRUD demo (auto-generated by
//                             `DataAccess.instance` around the `Person` entity).
//   * `disc_example.dart`   — File system / binary file demo
//                             (`DiscData.instance` around the `Images` entity).
//
// This `main.dart` simply orchestrates both demos in sequence. Run a single
// one with `flutter run -t example/sqlite_example.dart` or
// `flutter run -t example/disc_example.dart`.
// -----------------------------------------------------------------------------

import 'package:flutter/material.dart';
import 'disc_example.dart' as disc;
import 'sqlite_example.dart' as sqlite;
import 'whats_new_example.dart' as whats_new;

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  // 1. SQLite CRUD walk-through (Person entity).
  await sqlite.runSqliteDemo();

  // 2. File system / binary file walk-through (Images entity).
  await disc.runDiscDemo();

  // 3. What is new in 2.1: registration, bound values, transactions, queries.
  await whats_new.runWhatsNewDemo();

  runApp(
    const MaterialApp(
      home: Scaffold(body: Center(child: Text('b012_data tests completed'))),
    ),
  );
}
11
likes
150
points
662
downloads

Documentation

API reference

Publisher

verified publisherb012tech.com

Weekly Downloads

Spring Boot-inspired Flutter package with auto-generated SQLite CRUD for your entities, file helpers and optional encryption. Android, iOS, Linux, macOS, Windows, web.

Homepage
Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

crypto, cryptography, flutter, path, path_provider, sqflite, sqflite_common, sqflite_common_ffi, sqlite3, web

More

Packages that depend on b012_data