18 lines
444 B
Dart
18 lines
444 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class SubmitFormButton extends StatelessWidget {
|
|
final VoidCallback submitCallback;
|
|
const SubmitFormButton(this.submitCallback, {super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Padding(
|
|
padding: const EdgeInsets.symmetric(vertical: 16.0),
|
|
child: ElevatedButton(
|
|
onPressed: submitCallback,
|
|
child: const Text('Speichern'),
|
|
),
|
|
);
|
|
}
|
|
}
|