Skip to content

Instantly share code, notes, and snippets.

View RobertBrunhage's full-sized avatar

Robert Brunhage RobertBrunhage

View GitHub Profile
➜ 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
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(
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;
});
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
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
[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: {
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> {
@RobertBrunhage
RobertBrunhage / Flutter_test_snippets.code-snippets
Created January 2, 2021 15:07
These snippets I have gotten from FilledStacks so make sure to follow him!
{
"Main Test Suite Setup": {
"prefix": "testm",
"body": [
"import 'package:flutter_test/flutter_test.dart';",
"",
"void main() {",
" group('${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/g}} -', (){",
"",
" });",
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);
@RobertBrunhage
RobertBrunhage / nnoremap.lua
Last active December 23, 2022 13:06
nnoremap
-- 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>")