Skip to main content

data_save 0.4.7 copy "data_save: ^0.4.7" to clipboard
data_save: ^0.4.7 copied to clipboard

Simple Flutter storage over native SharedPreferences, with web cookies, localStorage for larger strings, and corrupt Windows preferences reset.

example/lib/main.dart

import 'package:data_save/DataSave.dart';
import 'package:flutter/material.dart';


void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';
  String test="";
  @override
  void initState() {
    super.initState();
    DataSave.setString("test","111edrvgdfvn11===111");
    test=DataSave.getString("test")!;
  }



  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text('Running on: $test'),
        ),
      ),
    );
  }
}
2
likes
125
points
263
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Simple Flutter storage over native SharedPreferences, with web cookies, localStorage for larger strings, and corrupt Windows preferences reset.

Repository (GitHub)
View/report issues

License

BSL-1.0 (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, shared_preferences, web

More

Packages that depend on data_save