add cartion filter and search

This commit is contained in:
tzw
2024-02-07 17:26:29 +06:30
parent 2d4cdb9620
commit caf20f4e67
39 changed files with 1274 additions and 1181 deletions

View File

@@ -2,7 +2,7 @@ import 'package:fcs/helpers/theme.dart';
import 'package:fcs/pages/widgets/local_text.dart';
import 'package:flutter/material.dart';
import 'local_popupmenu.dart';
import '../../domain/vo/local_popupmenu.dart';
typedef PopupMenuCallback = Function(LocalPopupMenu popupMenu);

View File

@@ -1,25 +0,0 @@
class LocalPopupMenu {
int id;
String? textKey;
String? text;
bool selected;
bool highlight;
bool enabled;
LocalPopupMenu(
{required this.id,
this.textKey,
this.text,
this.selected = false,
this.highlight = false,
this.enabled = true});
}
List<LocalPopupMenu> shipFiteringMenu = <LocalPopupMenu>[
LocalPopupMenu(id: 0, text :"All"),
LocalPopupMenu(id: 1, text: "Pending"),
LocalPopupMenu(id: 2, text: "Processing"),
LocalPopupMenu(id: 3, text: "Shipped"),
LocalPopupMenu(id: 4, text: "Arrived"),
LocalPopupMenu(id: 5, text: "Invoiced"),
LocalPopupMenu(id: 6, text: "Canceled"),
];