размер шрифта
This commit is contained in:
@@ -23,7 +23,7 @@ class AppFonts {
|
|||||||
static const String customPrefKey = 'app_custom_fonts';
|
static const String customPrefKey = 'app_custom_fonts';
|
||||||
static const String customPrefix = 'g:';
|
static const String customPrefix = 'g:';
|
||||||
|
|
||||||
static const double minScale = 0.85;
|
static const double minScale = 0.60;
|
||||||
static const double maxScale = 1.35;
|
static const double maxScale = 1.35;
|
||||||
static const double defaultScale = 1.0;
|
static const double defaultScale = 1.0;
|
||||||
|
|
||||||
|
|||||||
@@ -378,7 +378,9 @@ class _FontSizeControl extends StatelessWidget {
|
|||||||
value: AppFonts.clampScale(scale),
|
value: AppFonts.clampScale(scale),
|
||||||
min: AppFonts.minScale,
|
min: AppFonts.minScale,
|
||||||
max: AppFonts.maxScale,
|
max: AppFonts.maxScale,
|
||||||
divisions: 10,
|
divisions:
|
||||||
|
((AppFonts.maxScale - AppFonts.minScale) / 0.05)
|
||||||
|
.round(),
|
||||||
onChanged: onChanged,
|
onChanged: onChanged,
|
||||||
onChangeEnd: onChangeEnd,
|
onChangeEnd: onChangeEnd,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user