Skip to content

Commit 79f8df3

Browse files
Updated: Null check removed for ButtonTextWithIcon
1 parent a7e1cca commit 79f8df3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/vaahextendflutter/widgets/atoms/buttons.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ class ButtonText extends StatelessWidget {
297297
class ButtonTextWithIcon extends StatelessWidget {
298298
final OnPressed onPressed;
299299
final String text;
300-
final Widget? leading;
300+
final Widget leading;
301301
final ButtonStyle? style;
302302
final ButtonType? buttonType;
303303
final Color? foregroundColor;
@@ -310,7 +310,7 @@ class ButtonTextWithIcon extends StatelessWidget {
310310
Key? key,
311311
required this.onPressed,
312312
required this.text,
313-
this.leading,
313+
required this.leading,
314314
this.style,
315315
this.buttonType,
316316
this.foregroundColor,
@@ -341,7 +341,7 @@ class ButtonTextWithIcon extends StatelessWidget {
341341
fontSize: fontSize,
342342
),
343343
),
344-
icon: leading!,
344+
icon: leading,
345345
);
346346
}
347347
}

0 commit comments

Comments
 (0)