preparing filterbutton in shipmentlist and UI of carton Info

This commit is contained in:
sma
2024-02-02 17:51:46 +06:30
parent 24f2dc110c
commit ea68085c44
6 changed files with 206 additions and 73 deletions

View File

@@ -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,
),
],
),
),