Reworked Commends
parent
4700f52646
commit
b6c3c2e7a7
|
@ -43,9 +43,8 @@ class _IntervalTimerPageState extends State<IntervalTimerPage> {
|
||||||
await showDialog(
|
await showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return const StartTimerPopup(
|
return const TimerStartStopPopup(
|
||||||
title: 'Motivation vor dem Training',
|
title: 'Motivation vor dem Training',
|
||||||
text: 'Du gehörst zu Gruppe',
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
@ -73,9 +72,8 @@ class _IntervalTimerPageState extends State<IntervalTimerPage> {
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return const StartTimerPopup(
|
return const TimerStartStopPopup(
|
||||||
title: 'Motivation nach dem Training',
|
title: 'Motivation nach dem Training',
|
||||||
text: 'Du gehörst zu Gruppe',
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
|
@ -3,26 +3,23 @@ import 'package:smoke_cess_app/widgets/slider.dart';
|
||||||
import 'package:smoke_cess_app/widgets/submit_form_button.dart';
|
import 'package:smoke_cess_app/widgets/submit_form_button.dart';
|
||||||
import 'package:smoke_cess_app/widgets/text_formfield.dart';
|
import 'package:smoke_cess_app/widgets/text_formfield.dart';
|
||||||
|
|
||||||
class StartTimerPopup extends StatefulWidget {
|
class TimerStartStopPopup extends StatefulWidget {
|
||||||
final String title;
|
final String title;
|
||||||
final String text;
|
|
||||||
|
|
||||||
const StartTimerPopup({Key? key, required this.title, required this.text})
|
const TimerStartStopPopup({Key? key, required this.title}) : super(key: key);
|
||||||
: super(key: key);
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_StartTimerPopupState createState() => _StartTimerPopupState();
|
TimerStartStopPopupState createState() => TimerStartStopPopupState();
|
||||||
}
|
}
|
||||||
|
|
||||||
class _StartTimerPopupState extends State<StartTimerPopup> {
|
class TimerStartStopPopupState extends State<TimerStartStopPopup> {
|
||||||
final MySlider slider = const MySlider();
|
final MySlider slider = const MySlider();
|
||||||
String _textInput = '';
|
|
||||||
|
|
||||||
void submitForm(BuildContext context) {
|
void submitForm(BuildContext context) {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
void onFormFieldSave(String? newValue) => _textInput = newValue!;
|
void onFormFieldSave(String? newValue) => newValue!;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
|
Loading…
Reference in New Issue