File tree 1 file changed +3
-3
lines changed
lib/vaahextendflutter/widgets/atoms 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ class ButtonText extends StatelessWidget {
297
297
class ButtonTextWithIcon extends StatelessWidget {
298
298
final OnPressed onPressed;
299
299
final String text;
300
- final Widget ? leading;
300
+ final Widget leading;
301
301
final ButtonStyle ? style;
302
302
final ButtonType ? buttonType;
303
303
final Color ? foregroundColor;
@@ -310,7 +310,7 @@ class ButtonTextWithIcon extends StatelessWidget {
310
310
Key ? key,
311
311
required this .onPressed,
312
312
required this .text,
313
- this .leading,
313
+ required this .leading,
314
314
this .style,
315
315
this .buttonType,
316
316
this .foregroundColor,
@@ -341,7 +341,7 @@ class ButtonTextWithIcon extends StatelessWidget {
341
341
fontSize: fontSize,
342
342
),
343
343
),
344
- icon: leading! ,
344
+ icon: leading,
345
345
);
346
346
}
347
347
}
You can’t perform that action at this time.
0 commit comments