actions-test/lib/components/labeled_divider.dart
Jakob Meier 47387bb395
Added basic Shopping List and Product list
including the ability to
add item into the shopping cart and remove them.

The click events have been implemented,
however the routes do not exist yet.

NOTE: The shopping list item info sheet is still missing
the unit type and value
and some more advanced options, like deleting the item
2023-04-04 10:29:29 +02:00

19 lines
417 B
Dart

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()),
]
);
}
}