This commit is contained in:
Vadim 2022-10-25 23:07:36 +03:00
parent a568aed5d6
commit 9c8809cad6
3 changed files with 6 additions and 8 deletions

View file

@ -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';

View file

@ -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),
),

View file

@ -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()
],
),
);