mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 15:00: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:flutter/material.dart';
|
||||||
import 'package:material_color_utilities/material_color_utilities.dart';
|
|
||||||
|
|
||||||
import 'res/theme.dart';
|
import 'res/theme.dart';
|
||||||
import 'screens/metering/metering_screen.dart';
|
import 'screens/metering/metering_screen.dart';
|
||||||
|
|
|
@ -48,12 +48,12 @@ class MeteringTopBar extends StatelessWidget {
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: ReadingContainer(
|
child: ReadingContainer(
|
||||||
values: [
|
values: const [
|
||||||
const ReadingValue(
|
ReadingValue(
|
||||||
label: 'Fastest',
|
label: 'Fastest',
|
||||||
value: 'f/5.6 - 1/2000',
|
value: 'f/5.6 - 1/2000',
|
||||||
),
|
),
|
||||||
const ReadingValue(
|
ReadingValue(
|
||||||
label: 'Slowest',
|
label: 'Slowest',
|
||||||
value: 'f/45 - 1/30',
|
value: 'f/45 - 1/30',
|
||||||
),
|
),
|
||||||
|
@ -65,7 +65,7 @@ class MeteringTopBar extends StatelessWidget {
|
||||||
width: columnWidth,
|
width: columnWidth,
|
||||||
child: ClipRRect(
|
child: ClipRRect(
|
||||||
borderRadius: BorderRadius.circular(Dimens.borderRadiusM),
|
borderRadius: BorderRadius.circular(Dimens.borderRadiusM),
|
||||||
child: AspectRatio(
|
child: const AspectRatio(
|
||||||
aspectRatio: 3 / 4,
|
aspectRatio: 3 / 4,
|
||||||
child: ColoredBox(color: Colors.black),
|
child: ColoredBox(color: Colors.black),
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:lightmeter/screens/metering/components/topbar/components/reading_container.dart';
|
|
||||||
|
|
||||||
import 'components/topbar/topbar.dart';
|
import 'components/topbar/topbar.dart';
|
||||||
|
|
||||||
|
@ -11,14 +10,14 @@ class MeteringScreen extends StatelessWidget {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: Theme.of(context).colorScheme.background,
|
backgroundColor: Theme.of(context).colorScheme.background,
|
||||||
body: Column(
|
body: Column(
|
||||||
children: [
|
children: const [
|
||||||
MeteringTopBar(
|
MeteringTopBar(
|
||||||
lux: 283,
|
lux: 283,
|
||||||
ev: 2.3,
|
ev: 2.3,
|
||||||
iso: 6400,
|
iso: 6400,
|
||||||
nd: 0,
|
nd: 0,
|
||||||
),
|
),
|
||||||
const Spacer()
|
Spacer()
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue