add submit widget for mix carton

This commit is contained in:
tzw
2024-02-05 11:13:12 +06:30
parent 16ad71f257
commit ea206bed13
16 changed files with 1089 additions and 104 deletions

View File

@@ -6,7 +6,7 @@ import 'package:provider/provider.dart';
class DisplayText extends StatelessWidget {
final String? text;
final String? text1;
final Widget? subText;
final String? labelTextKey;
final IconData? iconData;
final int? maxLines;
@@ -14,11 +14,10 @@ class DisplayText extends StatelessWidget {
final Color? borderColor;
final Widget? icon;
const DisplayText({
Key? key,
this.text,
this.text1,
this.subText,
this.labelTextKey,
this.iconData,
this.maxLines = 1,
@@ -72,12 +71,9 @@ class DisplayText extends StatelessWidget {
text!,
style: textStyle,
),
text1 == null
subText == null
? Container()
: Text(
text1!,
style: textStyle,
),
: subText!,
],
),
),