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 MyAnimatedCrossFade extends StatelessWidget { | |
const MyAnimatedCrossFade({ | |
super.key, | |
required this.duration, | |
required this.index, | |
required this.children, | |
}) : assert(index >= 0 && index < children.length); | |
final Duration duration; | |
final int index; |
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 AnimatedValueBuilder<T> extends StatefulWidget { | |
const AnimatedValueBuilder({ | |
super.key, | |
required this.duration, | |
required this.tween, | |
required this.progress, | |
required this.builder, | |
this.child, | |
}) : assert(progress >= 0 && progress <= 1); |
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
analyzer: | |
exclude: | |
- "**.g.dart" | |
- "**.chopper.dart" | |
- "**.freezed.dart" | |
language: | |
strict-casts: true | |
strict-inference: true | |
strict-raw-types: true | |
errors: |
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/gestures.dart'; | |
import 'package:flutter/rendering.dart'; | |
import 'package:flutter/widgets.dart'; | |
typedef WhenCallback = bool Function(Offset position); | |
class ConditionallyTapGestureDetector extends SingleChildRenderObjectWidget { | |
const ConditionallyTapGestureDetector({ | |
super.key, | |
this.behavior = HitTestBehavior.deferToChild, |
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:ui'; | |
import 'package:flutter/widgets.dart'; | |
class MyColorTween extends Tween<Color> { | |
MyColorTween({ | |
required Color super.begin, | |
required Color super.end, | |
}); |
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
String remainsText( | |
Duration? remains, { | |
String leading = ' (', | |
String trailing = ')', | |
bool padMinutes = true, | |
bool padSeconds = true, | |
}) { | |
if (remains == null) { | |
return ''; | |
} |
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/widgets.dart'; | |
import 'resume_lock_action.dart'; | |
import 'resume_lock_delegate.dart'; | |
export 'resume_lock_action.dart'; | |
export 'resume_lock_delegate.dart'; |