This repository has been archived on 2025-06-12. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Temperaturdecke/lib/screens/wool_modal.dart
2024-05-18 00:23:19 +02:00

27 lines
681 B
Dart

import 'package:flutter/material.dart';
import 'package:temperaturdecke/db_test.dart';
import 'package:temperaturdecke/widgets/modal_wrapper.dart';
class WoolModal extends StatelessWidget {
WoolModal(this.woolId, {super.key});
int woolId;
@override
Widget build(BuildContext context) {
return ModalWrapper(
Column(
children: [
TextButton(
onPressed: () {
removeWool(context, woolId);
},
child: Text("Löschen"),
style: ButtonStyle(
minimumSize:
WidgetStateProperty.all(Size(double.maxFinite, 70))),
),
],
),
);
}
}