I hereby claim:
- I am cretezy on github.
- I am cretezy (https://keybase.io/cretezy) on keybase.
- I have a public key ASDCcHC4gAtfkgUsunkH6TV5kFoCD41eVYW6JtkKzmjq1Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Dockerfile | |
node_modules |
import 'package:flutter_super_state/flutter_super_state.dart'; | |
// Modules extend `StoreModule` | |
class CounterModule extends StoreModule { | |
// Read only property, to avoid accidentally setting `counter` without calling `setState` | |
int get counter => _counter; | |
var _counter = 0; | |
// This automatically registers your module to your store | |
CounterModule(Store store): super(store); |
import 'package:flutter_super_state/flutter_super_state.dart'; | |
final store = Store(); | |
// Register modules. Order does not matter. You should register all modules on initialization | |
CounterModule(store); |
import 'package:flutter_super_state/flutter_super_state.dart'; | |
import 'package:state_test/src/store/counter.dart'; | |
class AuthModule extends StoreModule { | |
int get isLoggedIn => isLoggedIn; | |
var _isLoggedIn = false; | |
AuthModule(Store store) : super(store); | |
Future<void> login() async { |
class LoginScreen extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: Text("Login"), | |
), | |
body: Center( | |
// Login button |
void main() { | |
// Create the store | |
final store = Store(); | |
// Register modules | |
CounterModule(store); | |
AuthModule(store); | |
// Provide store to whole application | |
runApp(StoreProvider( |
The following terms are used throughout this agreement:
return { | |
{ | |
"mollerhoj/telescope-recent-files.nvim", | |
config = function() require("telescope").load_extension("recent-files") end, | |
keys = { | |
{ | |
"<Tab>", | |
function() | |
require("telescope").extensions["recent-files"].recent_files({ | |
attach_mappings = function(_, map) |