From 9c8809cad60cf1528d0aee0816623940d5fe2460 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Tue, 25 Oct 2022 23:07:36 +0300 Subject: [PATCH] clean up --- lib/main.dart | 1 - lib/screens/metering/components/topbar/topbar.dart | 8 ++++---- lib/screens/metering/metering_screen.dart | 5 ++--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 92cb0db..1668269 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,5 +1,4 @@ import 'package:flutter/material.dart'; -import 'package:material_color_utilities/material_color_utilities.dart'; import 'res/theme.dart'; import 'screens/metering/metering_screen.dart'; diff --git a/lib/screens/metering/components/topbar/topbar.dart b/lib/screens/metering/components/topbar/topbar.dart index 80bba5f..9bc50ec 100644 --- a/lib/screens/metering/components/topbar/topbar.dart +++ b/lib/screens/metering/components/topbar/topbar.dart @@ -48,12 +48,12 @@ class MeteringTopBar extends StatelessWidget { children: [ Expanded( child: ReadingContainer( - values: [ - const ReadingValue( + values: const [ + ReadingValue( label: 'Fastest', value: 'f/5.6 - 1/2000', ), - const ReadingValue( + ReadingValue( label: 'Slowest', value: 'f/45 - 1/30', ), @@ -65,7 +65,7 @@ class MeteringTopBar extends StatelessWidget { width: columnWidth, child: ClipRRect( borderRadius: BorderRadius.circular(Dimens.borderRadiusM), - child: AspectRatio( + child: const AspectRatio( aspectRatio: 3 / 4, child: ColoredBox(color: Colors.black), ), diff --git a/lib/screens/metering/metering_screen.dart b/lib/screens/metering/metering_screen.dart index 3c01f8a..803eab0 100644 --- a/lib/screens/metering/metering_screen.dart +++ b/lib/screens/metering/metering_screen.dart @@ -1,5 +1,4 @@ import 'package:flutter/material.dart'; -import 'package:lightmeter/screens/metering/components/topbar/components/reading_container.dart'; import 'components/topbar/topbar.dart'; @@ -11,14 +10,14 @@ class MeteringScreen extends StatelessWidget { return Scaffold( backgroundColor: Theme.of(context).colorScheme.background, body: Column( - children: [ + children: const [ MeteringTopBar( lux: 283, ev: 2.3, iso: 6400, nd: 0, ), - const Spacer() + Spacer() ], ), );