radial button update

This commit is contained in:
MohammadTaha Basiri 2022-03-09 18:41:15 +03:30
parent 87cc2ffd61
commit 84c773f52a
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@ class DidvanRadialButton extends StatelessWidget {
final String title; final String title;
final VoidCallback onSelected; final VoidCallback onSelected;
final bool value; final bool value;
final double? fontSize;
final String? fontFamily; final String? fontFamily;
const DidvanRadialButton({ const DidvanRadialButton({
Key? key, Key? key,
@ -13,6 +14,7 @@ class DidvanRadialButton extends StatelessWidget {
required this.onSelected, required this.onSelected,
required this.value, required this.value,
this.fontFamily, this.fontFamily,
this.fontSize,
}) : super(key: key); }) : super(key: key);
@override @override
@ -52,6 +54,7 @@ class DidvanRadialButton extends StatelessWidget {
style: Theme.of(context).textTheme.bodyText2!.copyWith( style: Theme.of(context).textTheme.bodyText2!.copyWith(
fontFamily: fontFamily, fontFamily: fontFamily,
), ),
fontSize: fontSize,
), ),
], ],
), ),