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 'dart:collection'; | |
| import 'dart:io'; | |
| import 'dart:math'; | |
| import 'package:args/args.dart'; | |
| import 'package:path/path.dart' as path; | |
| ArgParser buildParser() => ArgParser() | |
| ..addOption('current-shard', abbr: 'c', mandatory: true) |
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
| /// Notification sent when a [PressScaleTransition] handles a press. | |
| /// Used to prevent ancestor [PressScaleTransition]s from animating. | |
| class _PressScaleNotification extends Notification { | |
| const _PressScaleNotification(); | |
| } | |
| /// A widget that adds a subtle scale down effect when pressed. | |
| /// | |
| /// When nested, only the innermost [PressScaleTransition] will animate, | |
| /// preventing unwanted visual effects on parent buttons. |
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 _SomeHeavyCard extends StatelessWidget { | |
| const _SomeHeavyCard({required this.index}); | |
| final int index; | |
| @override | |
| Widget build(BuildContext context) { | |
| return Card( | |
| elevation: 10, | |
| margin: const EdgeInsets.symmetric(horizontal: 20, vertical: 12), |
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'; | |
| /// A widget that transitions between two children using a fade and slide animation. | |
| class PageTransitionSwitcher extends StatelessWidget { | |
| const PageTransitionSwitcher({ | |
| required this.child, | |
| this.isForwardMove = true, | |
| 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/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| class Shimmer extends StatefulWidget { | |
| const Shimmer({super.key, this.size, this.child}); | |
| /// The size of the shimmer effect. | |
| /// | |
| /// Either this or [child] must be provided. | |
| /// If both are provided, [child] takes precedence. |
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'; | |
| void main() { | |
| runApp(const MainApp()); | |
| } | |
| class MainApp extends StatelessWidget { | |
| const MainApp({super.key}); | |
| @override |
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:bloc/bloc.dart'; | |
| class UserProfile { | |
| UserProfile({ | |
| required this.name, | |
| this.age, | |
| }); | |
| final String name; | |
| final int? age; |
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'; | |
| class SettingsBloc { | |
| void close() {} | |
| } | |
| /// {@template settings_scope} | |
| /// SettingsScope widget. | |
| /// {@endtemplate} | |
| class SettingsScope 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
| 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, | |
| }); |
NewerOlder