mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-25 00:40:39 +00:00
Removed source-swap button
This commit is contained in:
parent
bdf03f708f
commit
02e5fc582c
3 changed files with 16 additions and 18 deletions
|
@ -14,7 +14,8 @@ class MeteringSecondaryButton extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return FilledCircle(
|
||||
return Center(
|
||||
child: FilledCircle(
|
||||
color: Theme.of(context).colorScheme.surfaceVariant,
|
||||
size: 48,
|
||||
child: Center(
|
||||
|
@ -24,6 +25,7 @@ class MeteringSecondaryButton extends StatelessWidget {
|
|||
icon: Icon(icon),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,12 +5,10 @@ import 'components/widget_button_measure.dart';
|
|||
import 'components/widget_button_secondary.dart';
|
||||
|
||||
class MeteringBottomControls extends StatelessWidget {
|
||||
final VoidCallback onSourceChanged;
|
||||
final VoidCallback onMeasure;
|
||||
final VoidCallback onSettings;
|
||||
|
||||
const MeteringBottomControls({
|
||||
required this.onSourceChanged,
|
||||
required this.onMeasure,
|
||||
required this.onSettings,
|
||||
super.key,
|
||||
|
@ -32,17 +30,16 @@ class MeteringBottomControls extends StatelessWidget {
|
|||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: [
|
||||
MeteringSecondaryButton(
|
||||
onPressed: onSourceChanged,
|
||||
icon: Icons.flip_camera_android,
|
||||
),
|
||||
const Spacer(),
|
||||
MeteringMeasureButton(
|
||||
onTap: onMeasure,
|
||||
),
|
||||
MeteringSecondaryButton(
|
||||
Expanded(
|
||||
child: MeteringSecondaryButton(
|
||||
onPressed: onSettings,
|
||||
icon: Icons.settings,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
@ -86,7 +86,6 @@ class _MeteringScreenState extends State<MeteringScreen> {
|
|||
),
|
||||
),
|
||||
MeteringBottomControls(
|
||||
onSourceChanged: () {},
|
||||
onMeasure: () => context.read<MeteringBloc>().add(const MeasureEvent()),
|
||||
onSettings: () {
|
||||
Navigator.push(context, MaterialPageRoute(builder: (context) => const SettingsScreen()));
|
||||
|
|
Loading…
Reference in a new issue