2023-04-04 10:29:29 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class LabeledDivider extends StatelessWidget {
|
|
|
|
String label;
|
|
|
|
LabeledDivider(this.label);
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2023-12-22 20:14:36 +01:00
|
|
|
return Row(children: [
|
|
|
|
const Expanded(child: Divider()),
|
|
|
|
Padding(padding: const EdgeInsets.all(8), child: Text(label)),
|
|
|
|
const Expanded(child: Divider()),
|
|
|
|
]);
|
2023-04-04 10:29:29 +02:00
|
|
|
}
|
|
|
|
}
|