Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/piedcipher/flutterweb-localstorage-example

Example for my write-up on "Harnessing the power of localStorage API in Flutter Web App."
https://github.com/piedcipher/flutterweb-localstorage-example

dart dartlang flutter flutterweb localstorage localstorage-api

Last synced: 9 days ago
JSON representation

Example for my write-up on "Harnessing the power of localStorage API in Flutter Web App."

Awesome Lists containing this project

README

        

# Flutter Web LocalStorage Example
Example code for my write-up ["Harnessing the power of localStorage API in Flutter Web App"](https://link.medium.com/0xxijLpGOZ). It uses [window.localStorage](https://api.dartlang.org/stable/2.5.0/dart-html/Storage-class.html) API for persisting [brightness](https://api.flutter.dev/flutter/material/ThemeData/brightness.html) property of [ThemeData](https://api.flutter.dev/flutter/material/ThemeData-class.html).

### Live Demo
[App :rocket:](http://flutterweb-localstorage-example.surge.sh/)

![](https://i.imgur.com/OhiMpUL.gif)

### Development Tools
- [Dart](https://dart.dev)
- [Flutter Web](https://flutter.dev/web)

### Setup
```
$ git clone https://github.com/piedcipher/flutterweb-localStorage-example.git
$ cd flutterweb-localStorage-example/
$ pub get
$ pub global active webdev
$ webdev serve
```

### Blog post

[Link :newspaper:](https://link.medium.com/0xxijLpGOZ)