preparing filterbutton in shipmentlist and UI of carton Info
This commit is contained in:
@@ -6,22 +6,26 @@ import 'package:provider/provider.dart';
|
||||
|
||||
class DisplayText extends StatelessWidget {
|
||||
final String? text;
|
||||
final String? text1;
|
||||
final String? labelTextKey;
|
||||
final IconData? iconData;
|
||||
final int? maxLines;
|
||||
final bool? withBorder;
|
||||
final Color? borderColor;
|
||||
final Widget? icon;
|
||||
|
||||
|
||||
const DisplayText({
|
||||
Key? key,
|
||||
this.text,
|
||||
this.text1,
|
||||
this.labelTextKey,
|
||||
this.iconData,
|
||||
this.maxLines = 1,
|
||||
this.withBorder = false,
|
||||
this.borderColor,
|
||||
this.icon,
|
||||
|
||||
}) : super(key: key);
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -46,12 +50,13 @@ class DisplayText extends StatelessWidget {
|
||||
: icon!
|
||||
: Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
left: .0, right: 15.0, top: 8.0, bottom: 8.0),
|
||||
left: .0, right: 15, top: 8.0, bottom: 8.0),
|
||||
child: Icon(
|
||||
iconData,
|
||||
color: primaryColor,
|
||||
),
|
||||
),
|
||||
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
@@ -68,6 +73,12 @@ class DisplayText extends StatelessWidget {
|
||||
text!,
|
||||
style: textStyle,
|
||||
),
|
||||
text1 == null
|
||||
? Container()
|
||||
: Text(
|
||||
text1!,
|
||||
style: textStyle,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -13,3 +13,13 @@ class LocalPopupMenu {
|
||||
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"),
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user