This file contains hidden or 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:go_router/go_router.dart'; | |
| main() { | |
| CustomNavigationHelper.instance; | |
| runApp(const App()); | |
| } | |
| class App extends StatelessWidget { | |
| const App({Key? key}) : super(key: key); |
This file contains hidden or 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:go_router/go_router.dart'; | |
| main() { | |
| CustomNavigationHelper.instance; | |
| runApp(const App()); | |
| } | |
| class App extends StatelessWidget { | |
| const App({Key? key}) : super(key: key); |
This file contains hidden or 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
| class Pizza { | |
| prepare() { | |
| console.log('prepare pizza') | |
| } | |
| cut() { | |
| console.log('cut the pizza') | |
| } | |
| pack() { | |
| console.log('pack warm pizza') | |
| } |
This file contains hidden or 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:rxdart/rxdart.dart'; | |
| class InMemoryStore<T> { | |
| InMemoryStore(T initial) : _subject = BehaviorSubject<T>.seeded(initial); | |
| // INIT | |
| final BehaviorSubject<T> _subject; | |
| // GET - synchronous | |
| T get value => _subject.value; | |
| // SET | |
| set value(T value) => _subject.add(value); |
This file contains hidden or 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
| class InMemoryState<T> { | |
| InLocalMemoryState(T initial) : _subject = BehaviorSubject<T>.seeded(initial); | |
| // INIT | |
| final BehaviorSubject<T> _subject; | |
| // GET - synchronous | |
| T get value => _subject.value; | |
| // SET |
This file contains hidden or 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
| syntax on | |
| set guicursor= | |
| set showmatch | |
| set relativenumber | |
| set nohlsearch | |
| "set noshowmode | |
| set hidden | |
| set noerrorbells | |
| set tabstop=2 softtabstop=2 |
This file contains hidden or 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
| # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
| # Initialization code that may require console input (password prompts, [y/n] | |
| # confirmations, etc.) must go above this block; everything else may go below. | |
| if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
| source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
| fi | |
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| PATH=~/.npm-global/bin:$PATH |
This file contains hidden or 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
| syntax on | |
| set guicursor= | |
| set showmatch | |
| set relativenumber | |
| set nohlsearch | |
| set hidden | |
| set noerrorbells | |
| set tabstop=2 softtabstop=2 | |
| set shiftwidth=2 |