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
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 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
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 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: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 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
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 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
➜ 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 |
NewerOlder