mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-24 08:20:40 +00:00
clean up
This commit is contained in:
parent
a568aed5d6
commit
9c8809cad6
3 changed files with 6 additions and 8 deletions
|
@ -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';
|
||||
|
|
|
@ -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),
|
||||
),
|
||||
|
|
|
@ -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()
|
||||
],
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue