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 AnimatedFireIcon extends StatefulWidget { | |
| final double size; | |
| final Color color; | |
| const AnimatedFireIcon({ | |
| super.key, | |
| this.size = 24.0, | |
| this.color = Colors.white, | |
| }); |
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:playcope/lib.dart'; | |
| extension OnWidgets on Widget { | |
| Widget withPadding({ | |
| double all = 0, | |
| double right = 0, | |
| double left = 0, | |
| double top = 0, | |
| double bottom = 0, | |
| double padding = 0, |
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:playcope/lib.dart'; | |
| class GamesAddedCounter extends StatefulWidget { | |
| const GamesAddedCounter({ | |
| super.key, | |
| this.isVisible = true, | |
| required this.controller, | |
| this.offsetY = 0, | |
| this.date, | |
| }); |
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 CustomExpansionTile extends StatefulWidget { | |
| final Widget title; | |
| final List<Widget> children; | |
| final bool initiallyExpanded; | |
| final EdgeInsetsGeometry? margin; | |
| final VoidCallback? onToggle; | |
| const CustomExpansionTile({ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 _RiskIndicatorPainter extends CustomPainter { | |
| final double risk; | |
| final Color color; | |
| const _RiskIndicatorPainter({required this.risk, required this.color}); | |
| @override | |
| void paint(Canvas canvas, Size size) { | |
| const strokeWidth = 8.0; | |
| final radius = (size.shortestSide - strokeWidth) / 2; | |
| final center = Offset(size.width / 2, size.height / 2); |
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:shorebird_code_push/shorebird_code_push.dart'; | |
| import 'package:restart_app/restart_app.dart'; | |
| // uses the drops package [https://pub.dev/packages/drops] | |
| class Updater { | |
| final BuildContext context; | |
| final _updater = ShorebirdUpdater(); | |
| Updater({required this.context}) { | |
| _updater.readCurrentPatch().then((patch) { |
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'; | |
| import 'package:flutter/physics.dart'; | |
| import 'package:flutter/services.dart'; | |
| class CircularMotion extends StatefulWidget { | |
| final bool useBuilder; | |
| final IndexedWidgetBuilder? builder; | |
| final List<Widget>? children; |
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 ScorePickerListView extends StatefulWidget { | |
| const ScorePickerListView({super.key}); | |
| @override | |
| State<ScorePickerListView> createState() => _ScorePickerListViewState(); | |
| } | |
| class _ScorePickerListViewState extends State<ScorePickerListView> { | |
| static const itemCount = 10; | |
| late FixedExtentScrollController fixedExtentController; |
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 DashedBorder extends BoxBorder { | |
| const DashedBorder({ | |
| this.top = BorderSide.none, | |
| this.right = BorderSide.none, | |
| this.bottom = BorderSide.none, | |
| this.left = BorderSide.none, | |
| this.dashLength = 5.0, | |
| this.dashGap = 3.0, | |
| }); |
NewerOlder