37 lines
1010 B
Dart
37 lines
1010 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:provider/provider.dart';
|
|
import 'package:smoke_cess_app/widgets/drop_down.dart';
|
|
import 'package:smoke_cess_app/widgets/text_formfield.dart';
|
|
|
|
import '../providers/input_provider.dart';
|
|
import 'elevated_card.dart';
|
|
|
|
class RelapseForm extends StatelessWidget {
|
|
const RelapseForm({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
var inputModel = context.watch<InputProvider>();
|
|
return Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
const ElevatedCard(
|
|
title: 'Rückfallkategorie',
|
|
child: DropDown(),
|
|
),
|
|
const ElevatedCard(
|
|
title: 'Beschreibe deinen Rückfall',
|
|
child: MyTextFormField('Beschreibe deinen Rückfall'),
|
|
),
|
|
const SizedBox(
|
|
height: 80,
|
|
),
|
|
ElevatedButton(
|
|
onPressed: () => inputModel.saveRelapse(),
|
|
child: const Text('Speichern'),
|
|
)
|
|
],
|
|
);
|
|
}
|
|
}
|