diff options
Diffstat (limited to 'lib/presentation/screens/dashboard/widgets')
-rw-r--r-- | lib/presentation/screens/dashboard/widgets/car_status.dart | 6 | ||||
-rw-r--r-- | lib/presentation/screens/dashboard/widgets/dashboard_content.dart | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/presentation/screens/dashboard/widgets/car_status.dart b/lib/presentation/screens/dashboard/widgets/car_status.dart index 604d404..174905d 100644 --- a/lib/presentation/screens/dashboard/widgets/car_status.dart +++ b/lib/presentation/screens/dashboard/widgets/car_status.dart @@ -8,7 +8,7 @@ class CarStatus extends ConsumerWidget { const CarStatus({super.key}); @override - Widget build(BuildContext context, WidgetRef Ref) { + Widget build(BuildContext context, WidgetRef ref) { return Padding( padding: const EdgeInsets.fromLTRB(0, 0, 0, 84), child: SizedBox( @@ -194,9 +194,9 @@ class RightCarStatus extends ConsumerWidget { class TirePressureProgressIndicator extends StatelessWidget { final double value; const TirePressureProgressIndicator({ - Key? key, + super.key, required this.value, // Require the value to be passed - }) : super(key: key); + }); @override Widget build(BuildContext context) { diff --git a/lib/presentation/screens/dashboard/widgets/dashboard_content.dart b/lib/presentation/screens/dashboard/widgets/dashboard_content.dart index 1d25fdf..c4239ae 100644 --- a/lib/presentation/screens/dashboard/widgets/dashboard_content.dart +++ b/lib/presentation/screens/dashboard/widgets/dashboard_content.dart @@ -15,7 +15,7 @@ class DashBoardState extends ConsumerState<DashBoard> late AnimationController _animationController; late Animation<double> _animation; static bool _isAnimationPlayed = false; - Timer? timer = null; + Timer? timer; @override void initState() { @@ -53,8 +53,9 @@ class DashBoardState extends ConsumerState<DashBoard> @override void dispose() { _animationController.dispose(); - if (timer != null) + if (timer != null) { timer?.cancel(); + } super.dispose(); } |