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-17 23:46:30 +02:00

33 lines
871 B
Dart

import 'package:flutter/material.dart';
import 'package:temperaturdecke/db_test.dart';
class WoolModal extends StatelessWidget {
WoolModal(this.woolId, {super.key});
int woolId;
@override
Widget build(BuildContext context) {
return ClipRRect(
borderRadius: BorderRadius.vertical(top: Radius.circular(20)),
child: SizedBox(
width: 750,
child: Padding(
padding: EdgeInsets.all(10),
child: Column(
children: [
TextButton(
onPressed: () {
removeWool(context, woolId);
},
child: Text("Löschen"),
style: ButtonStyle(
minimumSize:
WidgetStateProperty.all(Size(double.maxFinite, 70))),
),
],
),
),
),
);
}
}