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

A Flutter TextEditingController that automatically saves and loads local text drafts with built-in debounce, TTL expiry, and AppLifecycle awareness.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:hive_flutter/hive_flutter.dart';

import 'screens/home_screen.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Hive.initFlutter();
  runApp(const AutoSaveExampleApp());
}

class AutoSaveExampleApp extends StatelessWidget {
  const AutoSaveExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'AutoSave Controller Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.indigo),
        useMaterial3: true,
      ),
      home: const HomeScreen(),
    );
  }
}
0
likes
160
points
30
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter TextEditingController that automatically saves and loads local text drafts with built-in debounce, TTL expiry, and AppLifecycle awareness.

Repository (GitHub)
View/report issues

Topics

#text-editing #autosave #draft #form #storage

License

MIT (license)

Dependencies

flutter

More

Packages that depend on auto_save_controller