๐
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'; | |
| typedef FutureGenerator<T> = Future<T> Function(); | |
| class FutureController<T> { | |
| Future<T>? _future; | |
| VoidCallback? _onUpdate; | |
| final FutureGenerator<T>? _futureGenerator; | |
| FutureController({FutureGenerator<T>? futureGenerator}) |
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
| // Copyright 2015 The Chromium Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| import 'dart:async'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/widgets.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
| name: CI | |
| on: | |
| push: | |
| branches: [master, staging] | |
| paths: | |
| - 'lib/**' | |
| - 'pubspec.yaml' | |
| - '.github/**' | |
| - 'android/**' |
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
| name: Automated Responses | |
| on: | |
| issues: | |
| types: [opened] | |
| pull_request: | |
| types: [opened] | |
| jobs: | |
| respond: |
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
| extension EfficientList<T> on List<T> { | |
| List<List<T>> splitBy(Iterable<T> separator) { | |
| List<List<T>> result = []; | |
| List<T> current = []; | |
| int i = 0; | |
| while (i < length) { | |
| bool isMatch = true; | |
| for (int j = 0; j < separator.length; j++) { | |
| if (i + j >= length || this[i + j] != separator.elementAt(j)) { | |
| isMatch = 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
| import 'package:expandable/expandable.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:linkable/linkable.dart'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.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'; | |
| @immutable | |
| class AppTextTheme extends ThemeExtension<AppTextTheme> { | |
| final TextStyle? headline01; | |
| final TextStyle? headline02; | |
| final TextStyle? headline03; | |
| final TextStyle? headline04; | |
| final TextStyle? headline05; | |
| final TextStyle? title01; |
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
| // Have the function ArrayChallenge(strArr) | |
| // read the array of strings stored in strArr, which will contain 2 elements: | |
| // the first element will be a sequence of characters, | |
| // and the second element will be a long string of comma-separated words, in alphabetical order, | |
| // that represents a dictionary of some arbitrary length. | |
| // For example: strArr can be: ["hellocat", "apple,bat,cat,goodbye,hello,yellow,why"]. | |
| // Your goal is to determine if the first element in the input can be split into two words, | |
| // where both words exist in the dictionary that is provided in the second input. | |
| // In this example, the first element can be split into two words: | |
| // hello and cat because both of those words are in the dictionary. |
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 InfiniteScrollText extends StatefulWidget { | |
| @override | |
| _InfiniteScrollTextState createState() => _InfiniteScrollTextState(); | |
| } | |
| class _InfiniteScrollTextState extends State<InfiniteScrollText> | |
| with TickerProviderStateMixin { | |
| late ScrollController _controller; | |
| late AnimationController _animationController; |
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 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp( | |
| MaterialApp( | |
| debugShowCheckedModeBanner: false, | |
| home: RadialMenu(), | |
| ), | |
| ); |