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
➜ listwell git:(fix-home) ✗ flutter run -d chrome -v | |
[ +140 ms] executing: [/Users/admin/Documents/flutter/] git -c | |
log.showSignature=false log -n 1 --pretty=format:%H | |
[ +45 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 | |
--pretty=format:%H | |
[ +1 ms] d9653445f4d1257b5f5adb4b271d1316469e8cf1 | |
[ ] executing: [/Users/admin/Documents/flutter/] git tag --contains HEAD | |
[ +208 ms] Exit code 0 from: git tag --contains HEAD | |
[ ] 1.20.0-0.0.pre | |
[ +11 ms] executing: [/Users/admin/Documents/flutter/] git rev-parse |
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
1. | |
class UserAuthPageContainer extends StatelessWidget { | |
const UserAuthPageContainer({Key key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Consumer((context, read) { | |
final authUser = read(authSateChangedProvider).data?.value; | |
if (authUser != null) { | |
return ProviderScope( |
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:hooks_riverpod/hooks_riverpod.dart'; | |
import 'package:flutter_hooks/flutter_hooks.dart'; | |
const kDialogSize = Size(550, 700); | |
final radiusProvider = Provider<double>((ref) { | |
return 8; | |
}); |
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
linter: | |
rules: | |
- always_declare_return_types | |
- always_put_control_body_on_new_line | |
- always_put_required_named_parameters_first | |
- always_require_non_null_named_parameters | |
- always_specify_types | |
- annotate_overrides | |
- avoid_annotating_with_dynamic | |
- avoid_as |
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
include: all_lint_rules.yaml | |
analyzer: | |
exclude: | |
- "**/*.g.dart" | |
- "**/*.freezed.dart" | |
# This is generated from the i18n vscode extension | |
- "**/i18n.dart" | |
strong-mode: | |
implicit-casts: false | |
implicit-dynamic: false |
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
[dev-command]: register dev command | |
[sdk]: which flutter command => C:\Users\Robert-windows\Development\flutter\bin\flutter.BAT | |
[sdk]: flutter command path => C:\Users\Robert-windows\Development\flutter\bin\flutter.BAT | |
[sdk]: dart sdk home => C:\Users\Robert-windows\Development\flutter\bin\cache\dart-sdk | |
[sdk]: analyzer path => C:\Users\Robert-windows\Development\flutter\bin\cache\dart-sdk\bin\snapshots\analysis_server.dart.snapshot | |
[sdk]: dart command path => C:\Users\Robert-windows\Development\flutter\bin\cache\dart-sdk\bin\dart.exe | |
[sdk]: dart version: v2.11.0 | |
[lsp-server]: rightVersion true | |
[Trace - 05:59:22] Sending request 'initialize - (0)'. | |
Params: { |
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 'dart:async'; | |
import 'package:flutter/widgets.dart'; | |
import 'package:flutter_hooks/flutter_hooks.dart'; | |
int useInfiniteTimer(BuildContext context) { | |
return use(const _InfiniteTimer()); | |
} | |
class _InfiniteTimer extends Hook<int> { |
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
Show hidden characters
{ | |
"Main Test Suite Setup": { | |
"prefix": "testm", | |
"body": [ | |
"import 'package:flutter_test/flutter_test.dart';", | |
"", | |
"void main() {", | |
" group('${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/g}} -', (){", | |
"", | |
" });", |
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'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(HomePage()); | |
} | |
class HomePage extends StatefulWidget { | |
const HomePage({Key? key}) : super(key: key); |
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
-- vimscript way | |
-- nnoremap <leader>fd :below new output:///flutter-dev <CR> | |
-- lua way | |
vim.keymap.set("n", "<leader>fd", ":below new output:///flutter-dev <CR>") |
OlderNewer