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
| /* | |
| * Dots Loading Indicator | |
| * https://gist.github.com/PlugFox/e486dcaf99d958973a1f1b1cddea789b | |
| * https://dartpad.dev?id=e486dcaf99d958973a1f1b1cddea789b | |
| * Mike Matiunin <[email protected]>, 14 October 2025 | |
| */ | |
| // ignore_for_file: curly_braces_in_flow_control_structures | |
| import 'dart:typed_data'; |
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
| /* | |
| * Controlled Stateful Widget | |
| * https://gist.github.com/PlugFox/629202b0a7bcde8de3a7503bd33308bc | |
| * https://dartpad.dev?id=629202b0a7bcde8de3a7503bd33308bc | |
| * Mike Matiunin <[email protected]>, 05 July 2024 | |
| */ | |
| import 'dart:async'; | |
| import 'package:flutter/material.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
| import 'package:flutter/rendering.dart'; | |
| import 'package:flutter/widgets.dart'; | |
| class AnimatedEdgeSlide extends SingleChildRenderObjectWidget { | |
| const AnimatedEdgeSlide({ | |
| required Widget super.child, | |
| required this.positionAnimation, | |
| 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
| /* | |
| * Long Polling example | |
| * https://gist.github.com/PlugFox/51038cb6f587332f6e803790a7d991e5 | |
| * https://dartpad.dev?id=51038cb6f587332f6e803790a7d991e5 | |
| * Matiunin Mikhail <[email protected]>, 29 October 2023 | |
| */ | |
| // ignore_for_file: avoid_print | |
| import 'dart:async'; |
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
| /* | |
| * Side panel example | |
| * https://gist.github.com/PlugFox/ed60c155e7792d92b5400ca1652f0c2c | |
| * https://dartpad.dev?id=ed60c155e7792d92b5400ca1652f0c2c | |
| * Matiunin Mikhail <[email protected]>, 23 December 2023 | |
| */ | |
| import 'dart:async'; | |
| import 'dart:developer'; |
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
| void main() => runZonedGuarded<void>( | |
| () => runApp(const App()), | |
| (error, stackTrace) => log('Top level exception $error'), | |
| ); | |
| class App extends StatelessWidget { | |
| const App({super.key}); | |
| @override | |
| Widget build(BuildContext context) => MaterialApp( |
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:async'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/services.dart'; | |
| /// {@template text_measure} | |
| /// TextMeasure widget. | |
| /// {@endtemplate} | |
| class TextMeasure extends StatefulWidget { |
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 (c) 2019, the Dart project authors. Please see the AUTHORS file | |
| // for details. 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:math' as math; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/gestures.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/rendering.dart'; |