add submit widget for mix carton
This commit is contained in:
@@ -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!,
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user