multiple receipts in a trip
This commit is contained in:
+28
-23
@@ -263,29 +263,34 @@ class _ProductsScreenState extends State<ProductsScreen> {
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 4, 16, 4),
|
||||
child: SegmentedButton<ProductSort>(
|
||||
segments: const [
|
||||
ButtonSegment(
|
||||
value: ProductSort.name,
|
||||
label: Text('A–Z'),
|
||||
),
|
||||
ButtonSegment(
|
||||
value: ProductSort.preferred,
|
||||
label: Text('Frequent'),
|
||||
),
|
||||
ButtonSegment(
|
||||
value: ProductSort.favourite,
|
||||
icon: Icon(Icons.star),
|
||||
label: Text('Star'),
|
||||
),
|
||||
],
|
||||
selected: {_sort},
|
||||
onSelectionChanged: (selected) {
|
||||
setState(() {
|
||||
_sort = selected.first;
|
||||
});
|
||||
_load();
|
||||
},
|
||||
child: SizedBox(
|
||||
width: double.infinity,
|
||||
child: SegmentedButton<ProductSort>(
|
||||
expandedInsets: EdgeInsets.zero,
|
||||
showSelectedIcon: false,
|
||||
segments: const [
|
||||
ButtonSegment(
|
||||
value: ProductSort.name,
|
||||
label: Text('A–Z'),
|
||||
),
|
||||
ButtonSegment(
|
||||
value: ProductSort.preferred,
|
||||
label: Text('Frequent'),
|
||||
),
|
||||
ButtonSegment(
|
||||
value: ProductSort.favourite,
|
||||
icon: Icon(Icons.star),
|
||||
label: Text('Star'),
|
||||
),
|
||||
],
|
||||
selected: {_sort},
|
||||
onSelectionChanged: (selected) {
|
||||
setState(() {
|
||||
_sort = selected.first;
|
||||
});
|
||||
_load();
|
||||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
if (_nameIssues.isNotEmpty && !_editing)
|
||||
|
||||
Reference in New Issue
Block a user