diff --git a/README.md b/README.md index 81ed7a4..cc67b76 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +## Attention + +This is a fork of Circular Countdown Timer. Here i want to add some features like Reset the timer without autorun. + ## Circular Countdown Timer Make an animated circular countdown using Circular Countdown Timer. diff --git a/example/example.dart b/example/example.dart index c77a3c6..68eb861 100644 --- a/example/example.dart +++ b/example/example.dart @@ -1,5 +1,6 @@ import 'package:flutter/material.dart'; import 'package:circular_countdown_timer/circular_countdown_timer.dart'; +import 'package:circular_countdown_timer/countdown_controller.dart'; void main() => runApp(const MyApp()); @@ -30,7 +31,12 @@ class MyHomePage extends StatefulWidget { class _MyHomePageState extends State { final int _duration = 10; - final CountDownController _controller = CountDownController(); + final CountDownController _controller = CountDownController( + autoStart: ValueNotifier(false), + isReverse: ValueNotifier(true), + isReverseAnimation: ValueNotifier(true), + duration: const Duration(seconds: 10), + initialDuration: const Duration(seconds: 10)); @override Widget build(BuildContext context) { @@ -41,13 +47,12 @@ class _MyHomePageState extends State { body: Center( child: CircularCountDownTimer( // Countdown duration in Seconds. - duration: _duration, // Countdown initial elapsed Duration in Seconds. - initialDuration: 0, + initialDuration: const Duration(seconds: 10), // Controls (i.e Start, Pause, Resume, Restart) the Countdown Timer. - controller: _controller, + countdownController: _controller, // Width of the Countdown Widget. width: MediaQuery.of(context).size.width / 2, @@ -92,17 +97,9 @@ class _MyHomePageState extends State { // Format for the Countdown Text. textFormat: CountdownTextFormat.S, - // Handles Countdown Timer (true for Reverse Countdown (max to 0), false for Forward Countdown (0 to max)). - isReverse: false, - - // Handles Animation Direction (true for Reverse Animation, false for Forward Animation). - isReverseAnimation: false, - // Handles visibility of the Countdown Text. isTimerTextShown: true, - // Handles the timer start. - autoStart: false, // This Callback will execute when the Countdown Starts. onStart: () { diff --git a/lib/circular_countdown_timer.dart b/lib/circular_countdown_timer.dart index cbdb5c0..19d1170 100644 --- a/lib/circular_countdown_timer.dart +++ b/lib/circular_countdown_timer.dart @@ -1,10 +1,13 @@ library circular_countdown_timer; + import 'package:flutter/material.dart'; -import 'countdown_text_format.dart'; +import '/classes/formats.dart'; import 'custom_timer_painter.dart'; +import 'countdown_controller.dart'; export 'countdown_text_format.dart'; +export 'countdown_controller.dart'; /// Create a Circular Countdown Timer. class CircularCountDownTimer extends StatefulWidget { @@ -35,11 +38,8 @@ class CircularCountDownTimer extends StatefulWidget { /// This Callback will execute when the Countdown Changes. final ValueChanged? onChange; - /// Countdown duration in Seconds. - final int duration; - /// Countdown initial elapsed Duration in Seconds. - final int initialDuration; + final Duration initialDuration; /// Width of the Countdown Widget. final double width; @@ -62,21 +62,15 @@ class CircularCountDownTimer extends StatefulWidget { /// Format for the Countdown Text. final String? textFormat; - /// Handles Countdown Timer (true for Reverse Countdown (max to 0), false for Forward Countdown (0 to max)). - final bool isReverse; - - /// Handles Animation Direction (true for Reverse Animation, false for Forward Animation). - final bool isReverseAnimation; /// Handles visibility of the Countdown Text. final bool isTimerTextShown; /// Controls (i.e Start, Pause, Resume, Restart) the Countdown Timer. - final CountDownController? controller; + final CountDownController countdownController; /// Handles the timer start. - final bool autoStart; - + final Function timeFormatterFunction; /* * Function to format the text. * Allows you to format the current duration to any String. @@ -84,23 +78,20 @@ class CircularCountDownTimer extends StatefulWidget { as in reverse when reaching '0' show 'GO', and for the rest of the instances follow the default behavior. */ - final Function(Function(Duration duration) defaultFormatterFunction, - Duration duration)? timeFormatterFunction; + static emptyCallback(Function(Duration duration, String? textFormat) defaultFormatterFunction, Duration duration, String? textFormat){} + const CircularCountDownTimer({ required this.width, required this.height, - required this.duration, required this.fillColor, required this.ringColor, - this.timeFormatterFunction, + this.timeFormatterFunction = emptyCallback, this.backgroundColor, this.fillGradient, this.ringGradient, this.backgroundGradient, - this.initialDuration = 0, - this.isReverse = false, - this.isReverseAnimation = false, + this.initialDuration = const Duration(seconds: 10), this.onComplete, this.onStart, this.onChange, @@ -110,10 +101,9 @@ class CircularCountDownTimer extends StatefulWidget { this.textAlign = TextAlign.left, super.key, this.isTimerTextShown = true, - this.autoStart = true, this.textFormat, - this.controller, - }) : assert(initialDuration <= duration); + required this.countdownController, + }); @override CircularCountDownTimerState createState() => CircularCountDownTimerState(); @@ -121,108 +111,55 @@ class CircularCountDownTimer extends StatefulWidget { class CircularCountDownTimerState extends State with TickerProviderStateMixin { - AnimationController? _controller; - Animation? _countDownAnimation; - CountDownController? countDownController; + AnimationController? _animationController; String get time { - String timeStamp = ""; - if (widget.isReverse && - !widget.autoStart && - !countDownController!.isStarted) { - if (widget.timeFormatterFunction != null) { - return Function.apply(widget.timeFormatterFunction!, - [_getTime, Duration(seconds: widget.duration)]).toString(); - } else { - timeStamp = _getTime(Duration(seconds: widget.duration)); - } + if (widget.countdownController.isReverse.value && + !widget.countdownController.autoStart.value && + !widget.countdownController.autoStart.value && + !widget.countdownController.isStarted.value) { + return Function.apply(widget.timeFormatterFunction, [Formats.getTimeFormatted, widget.countdownController.duration, widget.textFormat]).toString(); } else { - Duration? duration = _controller!.duration! * _controller!.value; - if (widget.timeFormatterFunction != null) { - return Function.apply( - widget.timeFormatterFunction!, [_getTime, duration]).toString(); - } else { - timeStamp = _getTime(duration); - } - } - if (widget.onChange != null) widget.onChange!(timeStamp); + Duration duration = + widget.countdownController.duration * _animationController!.value; + //_animationController!.duration! * _animationController!.value; + return Function.apply(widget.timeFormatterFunction, [Formats.getTimeFormatted, duration, widget.textFormat]).toString(); - return timeStamp; + } } void _setAnimation() { - if (widget.autoStart) { - if (widget.isReverse) { - _controller!.reverse(from: 1); + if (widget.countdownController.autoStart.value) { + if (widget.countdownController.isReverse.value) { + _animationController!.reverse(from: 1); } else { - _controller!.forward(); + _animationController!.forward(); } } } void _setAnimationDirection() { - // if ((widget.isReverse && !widget.isReverseAnimation) || - // (widget.isReverse && widget.isReverseAnimation)) { - // _countDownAnimation = - // Tween(begin: 1, end: 0).animate(_controller!); - // } else if (!widget.isReverse && widget.isReverseAnimation) { - // _countDownAnimation = - // Tween(begin: 0, end: 1).animate(_controller!); - // } - if ((!widget.isReverse && widget.isReverseAnimation) || - (widget.isReverse && !widget.isReverseAnimation)) { - _countDownAnimation = - Tween(begin: 1, end: 0).animate(_controller!); + if ((!widget.countdownController.isReverse.value && widget.countdownController.isReverseAnimation.value) || + (widget.countdownController.isReverse.value && !widget.countdownController.isReverseAnimation.value)) { } } void _setController() { - countDownController?._state = this; - countDownController?._isReverse = widget.isReverse; - countDownController?._initialDuration = widget.initialDuration; - countDownController?._duration = widget.duration; - countDownController?.isStarted = widget.autoStart; - - if (widget.initialDuration > 0 && widget.autoStart) { - if (widget.isReverse) { - _controller?.value = 1 - (widget.initialDuration / widget.duration); + widget.countdownController.animationController = _animationController; + widget.countdownController.isReverse = widget.countdownController.isReverse; + widget.countdownController.initialDuration = widget.initialDuration; + widget.countdownController.textFormat = widget.textFormat; + + if (widget.initialDuration.inSeconds > 0 && widget.countdownController.autoStart.value) { + if (widget.countdownController.isReverse.value) { + _animationController?.value = + 1 - (widget.initialDuration.inSeconds / widget.countdownController.duration.inSeconds); } else { - _controller?.value = (widget.initialDuration / widget.duration); + _animationController?.value = + (widget.initialDuration.inSeconds / widget.countdownController.duration.inSeconds); } - countDownController?.start(); - } - } - - String _getTime(Duration duration) { - // For HH:mm:ss format - if (widget.textFormat == CountdownTextFormat.HH_MM_SS) { - return '${duration.inHours.toString().padLeft(2, '0')}:${(duration.inMinutes % 60).toString().padLeft(2, '0')}:${(duration.inSeconds % 60).toString().padLeft(2, '0')}'; - } - // For mm:ss format - else if (widget.textFormat == CountdownTextFormat.MM_SS) { - return '${(duration.inMinutes % 60).toString().padLeft(2, '0')}:${(duration.inSeconds % 60).toString().padLeft(2, '0')}'; - } - // For ss format - else if (widget.textFormat == CountdownTextFormat.SS) { - return (duration.inSeconds).toString().padLeft(2, '0'); - } - // For s format - else if (widget.textFormat == CountdownTextFormat.S) { - return '${(duration.inSeconds)}'; - } else { - // Default format - return _defaultFormat(duration); - } - } - - _defaultFormat(Duration duration) { - if (duration.inHours != 0) { - return '${duration.inHours.toString().padLeft(2, '0')}:${(duration.inMinutes % 60).toString().padLeft(2, '0')}:${(duration.inSeconds % 60).toString().padLeft(2, '0')}'; - } else if (duration.inMinutes != 0) { - return '${(duration.inMinutes % 60).toString().padLeft(2, '0')}:${(duration.inSeconds % 60).toString().padLeft(2, '0')}'; - } else { - return '${duration.inSeconds % 60}'; + widget.countdownController.start(); } } @@ -236,14 +173,13 @@ class CircularCountDownTimerState extends State @override void initState() { - countDownController = widget.controller ?? CountDownController(); super.initState(); - _controller = AnimationController( + _animationController = AnimationController( vsync: this, - duration: Duration(seconds: widget.duration), + duration: widget.countdownController.duration, ); - _controller!.addStatusListener((status) { + _animationController!.addStatusListener((status) { switch (status) { case AnimationStatus.forward: _onStart(); @@ -260,7 +196,7 @@ class CircularCountDownTimerState extends State /// [AnimationController]'s value is manually set to [1.0] that's why [AnimationStatus.completed] is invoked here this animation is [isReverse] /// Only call the [_onComplete] block when the animation is not reversed. - if (!widget.isReverse) _onComplete(); + if (!widget.countdownController.isReverse.value) _onComplete(); break; default: // Do nothing @@ -278,25 +214,26 @@ class CircularCountDownTimerState extends State width: widget.width, height: widget.height, child: AnimatedBuilder( - animation: _controller!, + animation: _animationController!, builder: (context, child) { return Align( child: AspectRatio( aspectRatio: 1.0, child: Stack( - children: [ + children: [ Positioned.fill( child: CustomPaint( painter: CustomTimerPainter( - animation: _countDownAnimation ?? _controller, + animation: + _animationController, fillColor: widget.fillColor, fillGradient: widget.fillGradient, ringColor: widget.ringColor, ringGradient: widget.ringGradient, strokeWidth: widget.strokeWidth, strokeCap: widget.strokeCap, - isReverse: widget.isReverse, - isReverseAnimation: widget.isReverseAnimation, + isReverse: widget.countdownController.isReverse.value, + isReverseAnimation: widget.countdownController.isReverseAnimation.value, backgroundColor: widget.backgroundColor, backgroundGradient: widget.backgroundGradient), ), @@ -325,103 +262,8 @@ class CircularCountDownTimerState extends State @override void dispose() { - _controller!.stop(); - _controller!.dispose(); + _animationController!.stop(); + _animationController!.dispose(); super.dispose(); } } - -/// Controls (i.e Start, Pause, Resume, Restart) the Countdown Timer. -class CountDownController { - CircularCountDownTimerState? _state; - bool? _isReverse; - bool isStarted = false, - isPaused = false, - isResumed = false, - isRestarted = false; - int? _initialDuration, _duration; - - /// This Method Starts the Countdown Timer - void start() { - if (_isReverse != null && _state != null && _state?._controller != null) { - if (_isReverse!) { - _state?._controller?.reverse( - from: _initialDuration == 0 - ? 1 - : 1 - (_initialDuration! / _duration!)); - } else { - _state?._controller?.forward( - from: _initialDuration == 0 ? 0 : (_initialDuration! / _duration!)); - } - isStarted = true; - isPaused = false; - isResumed = false; - isRestarted = false; - } - } - - /// This Method Pauses the Countdown Timer - void pause() { - if (_state != null && _state?._controller != null) { - _state?._controller?.stop(canceled: false); - isPaused = true; - isRestarted = false; - isResumed = false; - } - } - - /// This Method Resumes the Countdown Timer - void resume() { - if (_isReverse != null && _state != null && _state?._controller != null) { - if (_isReverse!) { - _state?._controller?.reverse(from: _state!._controller!.value); - } else { - _state?._controller?.forward(from: _state!._controller!.value); - } - isResumed = true; - isRestarted = false; - isPaused = false; - } - } - - /// This Method Restarts the Countdown Timer, - /// Here optional int parameter **duration** is the updated duration for countdown timer - - void restart({int? duration}) { - if (_isReverse != null && _state != null && _state?._controller != null) { - _state?._controller!.duration = Duration( - seconds: duration ?? _state!._controller!.duration!.inSeconds); - if (_isReverse!) { - _state?._controller?.reverse(from: 1); - } else { - _state?._controller?.forward(from: 0); - } - isStarted = true; - isRestarted = true; - isPaused = false; - isResumed = false; - } - } - - /// This Method resets the Countdown Timer - void reset() { - if (_state != null && _state?._controller != null) { - _state?._controller?.reset(); - isStarted = _state?.widget.autoStart ?? false; - isRestarted = false; - isPaused = false; - isResumed = false; - } - } - - /// This Method returns the **Current Time** of Countdown Timer i.e - /// Time Used in terms of **Forward Countdown** and Time Left in terms of **Reverse Countdown** - - String? getTime() { - if (_state != null && _state?._controller != null) { - return _state?._getTime( - _state!._controller!.duration! * _state!._controller!.value); - } - return ""; - } -} diff --git a/lib/classes/formats.dart b/lib/classes/formats.dart new file mode 100644 index 0000000..63f8214 --- /dev/null +++ b/lib/classes/formats.dart @@ -0,0 +1,35 @@ +import '../countdown_text_format.dart'; + +class Formats { + static _defaultFormat(Duration duration) { + if (duration.inHours != 0) { + return '${duration.inHours.toString().padLeft(2, '0')}:${(duration.inMinutes % 60).toString().padLeft(2, '0')}:${(duration.inSeconds % 60).toString().padLeft(2, '0')}'; + } else if (duration.inMinutes != 0) { + return '${(duration.inMinutes % 60).toString().padLeft(2, '0')}:${(duration.inSeconds % 60).toString().padLeft(2, '0')}'; + } else { + return '${duration.inSeconds % 60}'; + } + } + + static String getTimeFormatted(Duration duration, String? textFormat) { + // For HH:mm:ss format + if (textFormat == CountdownTextFormat.HH_MM_SS) { + return '${duration.inHours.toString().padLeft(2, '0')}:${(duration.inMinutes % 60).toString().padLeft(2, '0')}:${(duration.inSeconds % 60).toString().padLeft(2, '0')}'; + } + // For mm:ss format + else if (textFormat == CountdownTextFormat.MM_SS) { + return '${(duration.inMinutes % 60).toString().padLeft(2, '0')}:${(duration.inSeconds % 60).toString().padLeft(2, '0')}'; + } + // For ss format + else if (textFormat == CountdownTextFormat.SS) { + return (duration.inSeconds).toString().padLeft(2, '0'); + } + // For s format + else if (textFormat == CountdownTextFormat.S) { + return '${(duration.inSeconds)}'; + } else { + // Default format + return _defaultFormat(duration); + } + } +} diff --git a/lib/countdown_controller.dart b/lib/countdown_controller.dart new file mode 100644 index 0000000..ce3e3cc --- /dev/null +++ b/lib/countdown_controller.dart @@ -0,0 +1,116 @@ +import 'package:flutter/material.dart'; +import '/classes/formats.dart'; + +/// Controls (i.e Start, Pause, Resume, Restart) the Countdown Timer. +class CountDownController { + AnimationController? animationController; + ValueNotifier isReverse; + ValueNotifier isReverseAnimation; + ValueNotifier isStarted = ValueNotifier(false); + ValueNotifier isPaused = ValueNotifier(false); + ValueNotifier isResumed = ValueNotifier(false); + ValueNotifier isRestarted = ValueNotifier(false); + Duration initialDuration; + Duration duration; + String? textFormat; + ValueNotifier autoStart = ValueNotifier(false); + Function onStartCallback; + Function onCompleteCallback; + + static emptyCallback() {} + + CountDownController( + {required this.duration, + required this.initialDuration, + required this.autoStart, + required this.isReverse, + required this.isReverseAnimation, + this.onStartCallback = emptyCallback, + this.onCompleteCallback = emptyCallback}); + + /// This Method Starts the Countdown Timer + void start() { + + if (animationController != null) { + if (isReverse.value) { + animationController?.reverse(from: 1); + } else { + animationController?.forward(from: 0); + } + isStarted.value = true; + isRestarted.value = false; + isPaused.value = false; + isResumed.value = false; + } + } + + /// This Method Pauses the Countdown Timer + void pause() { + if (animationController != null) { + animationController?.stop(canceled: false); + isPaused.value = true; + isRestarted.value = false; + isResumed.value = false; + } + } + + /// This Method Resumes the Countdown Timer + void resume() { + if (animationController != null) { + if (isReverse.value) { + animationController?.reverse(from: animationController!.value); + } else { + animationController?.forward(from: animationController!.value); + } + isResumed.value = true; + isRestarted.value = false; + isPaused.value = false; + } + } + + /// This Method Restarts the Countdown Timer, + /// Here optional int parameter **duration** is the updated duration for countdown timer + + void restart({int? duration}) { + if (animationController != null) { + animationController!.duration = Duration( + seconds: duration ?? animationController!.duration!.inSeconds); + if (isReverse.value) { + animationController?.reverse(from: 1); + } else { + animationController?.forward(from: 0); + } + isStarted.value = true; + isRestarted.value = true; + isPaused.value = false; + isResumed.value = false; + } + } + + /// This Method resets the Countdown Timer + void reset({int? duration}) { + if (animationController != null) { + this.duration = Duration(seconds: duration ?? this.duration.inSeconds); + animationController!.duration = Duration( + seconds: duration ?? animationController!.duration!.inSeconds); + animationController?.reset(); + isStarted = autoStart; + isRestarted.value = false; + isPaused.value = false; + isResumed.value = false; + } + } + + /// This Method returns the **Current Time** of Countdown Timer i.e + /// Time Used in terms of **Forward Countdown** and Time Left in terms of **Reverse Countdown** + + String? getTime() { + String value = ""; + if (animationController != null) { + value = Formats.getTimeFormatted( + animationController!.duration! * animationController!.value, + textFormat); + } + return value; + } +} diff --git a/lib/custom_timer_painter.dart b/lib/custom_timer_painter.dart index 61c5a53..03fa9e5 100644 --- a/lib/custom_timer_painter.dart +++ b/lib/custom_timer_painter.dart @@ -43,12 +43,6 @@ class CustomTimerPainter extends CustomPainter { double progress = (animation!.value) * 2 * math.pi; double startAngle = math.pi * 1.5; - // if ((!isReverse! && isReverseAnimation!) || - // (isReverse! && isReverseAnimation!)) { - // progress = progress * -1; - // startAngle = -math.pi / 2; - // } - if (fillGradient != null) { final rect = Rect.fromCircle( center: size.center(Offset.zero), radius: size.width / 2); diff --git a/pubspec.lock b/pubspec.lock index 77c41e6..29a37b2 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,42 +5,48 @@ packages: dependency: transitive description: name: async - url: "https://pub.dartlang.org" + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" source: hosted - version: "2.9.0" + version: "2.11.0" boolean_selector: dependency: transitive description: name: boolean_selector - url: "https://pub.dartlang.org" + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.1" characters: dependency: transitive description: name: characters - url: "https://pub.dartlang.org" + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.3.0" clock: dependency: transitive description: name: clock - url: "https://pub.dartlang.org" + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" source: hosted version: "1.1.1" collection: dependency: transitive description: name: collection - url: "https://pub.dartlang.org" + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" source: hosted - version: "1.16.0" + version: "1.18.0" fake_async: dependency: transitive description: name: fake_async - url: "https://pub.dartlang.org" + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" source: hosted version: "1.3.1" flutter: @@ -52,7 +58,8 @@ packages: dependency: "direct dev" description: name: flutter_lints - url: "https://pub.dartlang.org" + sha256: aeb0b80a8b3709709c9cc496cdc027c5b3216796bc0af0ce1007eaf24464fd4c + url: "https://pub.dev" source: hosted version: "2.0.1" flutter_test: @@ -64,37 +71,42 @@ packages: dependency: transitive description: name: lints - url: "https://pub.dartlang.org" + sha256: "5cfd6509652ff5e7fe149b6df4859e687fca9048437857cb2e65c8d780f396e3" + url: "https://pub.dev" source: hosted version: "2.0.0" matcher: dependency: transitive description: name: matcher - url: "https://pub.dartlang.org" + sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" + url: "https://pub.dev" source: hosted - version: "0.12.12" + version: "0.12.16" material_color_utilities: dependency: transitive description: name: material_color_utilities - url: "https://pub.dartlang.org" + sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" + url: "https://pub.dev" source: hosted - version: "0.1.5" + version: "0.5.0" meta: dependency: transitive description: name: meta - url: "https://pub.dartlang.org" + sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e + url: "https://pub.dev" source: hosted - version: "1.8.0" + version: "1.10.0" path: dependency: transitive description: name: path - url: "https://pub.dartlang.org" + sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" + url: "https://pub.dev" source: hosted - version: "1.8.2" + version: "1.8.3" sky_engine: dependency: transitive description: flutter @@ -104,51 +116,66 @@ packages: dependency: transitive description: name: source_span - url: "https://pub.dartlang.org" + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" source: hosted - version: "1.9.0" + version: "1.10.0" stack_trace: dependency: transitive description: name: stack_trace - url: "https://pub.dartlang.org" + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.11.1" stream_channel: dependency: transitive description: name: stream_channel - url: "https://pub.dartlang.org" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.2" string_scanner: dependency: transitive description: name: string_scanner - url: "https://pub.dartlang.org" + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.2.0" term_glyph: dependency: transitive description: name: term_glyph - url: "https://pub.dartlang.org" + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" source: hosted version: "1.2.1" test_api: dependency: transitive description: name: test_api - url: "https://pub.dartlang.org" + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" source: hosted - version: "0.4.12" + version: "0.6.1" vector_math: dependency: transitive description: name: vector_math - url: "https://pub.dartlang.org" + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.4" + web: + dependency: transitive + description: + name: web + sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 + url: "https://pub.dev" + source: hosted + version: "0.3.0" sdks: - dart: ">=2.18.2 <3.0.0" + dart: ">=3.2.0-194.0.dev <4.0.0" flutter: ">=1.17.0"