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/foundation.dart' show Listenable, ValueListenable, VoidCallback, ChangeNotifier; | |
| /// Selector from [Listenable] | |
| typedef ListenableSelector<Controller extends Listenable, Value> = Value Function( | |
| Controller controller, | |
| ); | |
| /// Filter for [Listenable] | |
| typedef ListenableFilter<Value> = bool Function(Value prev, Value next); |
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
| /* | |
| * Dart data class example | |
| * https://gist.github.com/PlugFox/6a6d73a7822001af7f8558df89dbc60d | |
| * https://dartpad.dev/6a6d73a7822001af7f8558df89dbc60d | |
| * Matiunin Mikhail <[email protected]>, 16 May 2022 | |
| */ | |
| import 'package:meta/meta.dart'; | |
| void main() => |
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
| /* | |
| * Custom progress indicator | |
| * https://gist.github.com/PlugFox/d2274f2d4278473774b79b0020cbd618 | |
| * https://dartpad.dev/d2274f2d4278473774b79b0020cbd618 | |
| * Matiunin Mikhail <[email protected]>, 1 May 2022 | |
| */ | |
| import 'dart:async'; | |
| import 'dart:math' as math; |
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
| # ------------------------------------------------------ | |
| # Dockerfile | |
| # ------------------------------------------------------ | |
| # image: gitlab-registry.domain.tld/mobile/app/flutter | |
| # authors: [email protected] | |
| # license: MIT | |
| # ------------------------------------------------------ | |
| ARG VERSION="stable" |
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
| [ | |
| { | |
| "key": "ctrl+shift+l", | |
| "command": "editor.action.transformToLowercase" | |
| }, | |
| { | |
| "key": "ctrl+shift+u", | |
| "command": "editor.action.transformToUppercase" | |
| }, | |
| { |
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
Show hidden characters
| { | |
| "Changelog unreleased": { | |
| "scope": "md, markdown", | |
| "prefix": "changelog_unreleased", | |
| "description": "Changelog unreleased", | |
| "body": [ | |
| "# Unreleased", | |
| "+ added: ${0}", | |
| "+ changed: ", | |
| "+ deprecated: ", |
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
| package main | |
| import ( | |
| "fmt" | |
| "sort" | |
| ) | |
| var counter int = 0 | |
| func main() { |
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
| "explorer.fileNesting.enabled": true, | |
| "explorer.fileNesting.expand": false, | |
| "explorer.fileNesting.patterns": { | |
| "pubspec.yaml": ".flutter-plugins, .packages, .dart_tool, .flutter-plugins-dependencies, .metadata, .packages, pubspec.lock, build.yaml, analysis_options.yaml, all_lint_rules.yaml", | |
| ".gitignore": ".gitattributes, .gitmodules, .gitmessage, .mailmap, .git-blame*", | |
| "readme.*": "authors, backers.md, changelog*, citation*, code_of_conduct.md, codeowners, contributing.md, contributors, copying, credits, governance.md, history.md, license*, maintainers, readme*, security.md, sponsors.md", | |
| "*.dart": "$(capture).g.dart, $(capture).freezed.dart", | |
| }, |
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
| pull: | |
| docker compose pull | |
| start: | |
| docker compose up -d | |
| stop: | |
| docker compose down | |
| remove: |
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
| /// How to run | |
| /// ```bash | |
| /// flutter test --concurrency=1 --platform tester .\test\real_benchmark.dart | |
| /// flutter test --concurrency=1 --platform chrome .\test\real_benchmark.dart | |
| /// ``` | |
| import 'dart:async'; | |
| import 'package:benchmark_harness/benchmark_harness.dart'; | |
| import 'package:flutter_test/flutter_test.dart'; |