actions-test/lib/components/labeled_divider.dart

20 lines
417 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
class LabeledDivider extends StatelessWidget {
String label;
LabeledDivider(this.label);
@override
Widget build(BuildContext context) {
return Row(
children: [
const Expanded(child: Divider()),
Padding(
padding: const EdgeInsets.all(8),
child: Text(label)),
const Expanded(child: Divider()),
]
);
}
}