This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Flutter-related paths | |
path=("$HOME/.pub-cache/bin" $path) | |
# path=("$HOME/flutter/bin" $path) | |
path=("$HOME/fvm/default/bin" $path) | |
export PATH | |
# For GLOBAL flutter version -> | |
# build_runner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"window.zoomLevel": 0.8, | |
"editor.fontSize": 17, | |
"editor.fontFamily": "Fira code", | |
"editor.fontLigatures": true, | |
// General settings | |
"editor.minimap.enabled": false, | |
"explorer.compactFolders": false, | |
"editor.bracketPairColorization.enabled": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Miscellaneous | |
*.class | |
*.lock | |
*.log | |
*.pyc | |
*.swp | |
.DS_Store | |
.atom/ | |
.buildlog/ | |
.history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:bloc/bloc.dart'; | |
import 'package:freezed_annotation/freezed_annotation.dart'; | |
part 'counter_bloc.freezed.dart'; | |
part 'counter_event.dart'; | |
part 'counter_state.dart'; | |
typedef _Event = CounterEvent; | |
typedef _Emit = Emitter<CounterState>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_hooks/flutter_hooks.dart'; | |
import 'package:hooks_riverpod/hooks_riverpod.dart'; | |
class MyNotifier extends StateNotifier<int> { | |
MyNotifier() : super(0); | |
void add() => state++; | |
} |