Skip to content

Commit b605986

Browse files
reformat the code
1 parent 3d88756 commit b605986

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/core/widgets/custom_widgets/custom_rounded_elevated_button.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ class CustomRoundedElevatedButton extends StatelessWidget {
99
final Widget child;
1010
final VoidCallback onPressed;
1111
final bool fitToContent;
12-
final bool smallRounded;
12+
final double roundedRadius;
1313
final double fixedSize;
1414
const CustomRoundedElevatedButton({
1515
super.key,
1616
this.backgroundColor = ThemeEnum.focusColor,
1717
this.shadowColor = ThemeEnum.transparentColor,
1818
this.fitToContent = true,
19-
this.smallRounded = false,
19+
this.roundedRadius = 50,
2020
this.fixedSize = 35,
2121
required this.child,
2222
required this.onPressed,
@@ -37,7 +37,7 @@ class CustomRoundedElevatedButton extends StatelessWidget {
3737
fixedSize: fitToContent ? Size.fromHeight(fixedSize.r) : null,
3838
padding: EdgeInsets.symmetric(horizontal: 15.r),
3939
shape: RoundedRectangleBorder(
40-
borderRadius: BorderRadius.circular(smallRounded ? 10 : 50).r),
40+
borderRadius: BorderRadius.circular(roundedRadius).r),
4141
surfaceTintColor: background,
4242
foregroundColor: context.getColor(ThemeEnum.hintColor),
4343
),

0 commit comments

Comments
 (0)