2023-02-14 14:02:26 +01:00
|
|
|
import 'package:flutter/material.dart';
|
2023-02-26 17:33:32 +01:00
|
|
|
import 'package:provider/provider.dart';
|
2023-03-01 13:30:12 +01:00
|
|
|
import 'package:smoke_cess_app/providers/input_provider.dart';
|
2023-02-26 19:52:45 +01:00
|
|
|
import 'package:smoke_cess_app/providers/timer_provider.dart';
|
2023-02-27 01:20:00 +01:00
|
|
|
import 'package:smoke_cess_app/providers/workout_provider.dart';
|
2023-03-01 12:34:35 +01:00
|
|
|
import 'package:smoke_cess_app/widgets/mute_button.dart';
|
2023-02-27 01:20:00 +01:00
|
|
|
import 'package:smoke_cess_app/widgets/workout_timer_widget.dart';
|
2023-02-14 14:02:26 +01:00
|
|
|
|
2023-03-01 12:34:35 +01:00
|
|
|
class IntervalTimerPage extends StatelessWidget {
|
|
|
|
const IntervalTimerPage({super.key});
|
2023-02-14 14:02:26 +01:00
|
|
|
|
2023-02-19 15:44:41 +01:00
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2023-02-28 13:05:51 +01:00
|
|
|
TimerProvider timerProvider = TimerProvider();
|
2023-02-27 01:20:00 +01:00
|
|
|
return MultiProvider(
|
|
|
|
providers: [
|
2023-02-28 13:05:51 +01:00
|
|
|
ChangeNotifierProvider(create: (context) => timerProvider),
|
|
|
|
ChangeNotifierProvider(
|
2023-03-01 13:30:12 +01:00
|
|
|
create: (context) => WorkoutProvider(timerProvider)),
|
2023-02-27 01:20:00 +01:00
|
|
|
],
|
2023-03-01 12:34:35 +01:00
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: const [
|
|
|
|
Align(
|
|
|
|
alignment: Alignment.topLeft,
|
|
|
|
child: MuteButton(),
|
|
|
|
),
|
|
|
|
WorkoutTimerWidget()
|
|
|
|
],
|
|
|
|
),
|
2023-02-27 01:20:00 +01:00
|
|
|
);
|
2023-02-14 14:02:26 +01:00
|
|
|
}
|
|
|
|
}
|