mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-08-10 15:10:14 -04:00
text scaling fixes
This commit is contained in:
parent
de691cd778
commit
00fed31ce7
24 changed files with 206 additions and 238 deletions
|
@ -29,19 +29,21 @@ class StyledCheckbox extends StatelessWidget {
|
|||
}
|
||||
|
||||
Widget ctrl = Row(children: [
|
||||
Checkbox(
|
||||
value: _value,
|
||||
onChanged: _onChanged == null
|
||||
? null
|
||||
: (value) {
|
||||
if (value == null) {
|
||||
return;
|
||||
}
|
||||
singleFuture((this, _kStyledCheckboxChanged), () async {
|
||||
await _onChanged(value);
|
||||
});
|
||||
}),
|
||||
Text(_label, style: textStyle),
|
||||
Transform.scale(
|
||||
scale: 1.scaled(context),
|
||||
child: Checkbox(
|
||||
value: _value,
|
||||
onChanged: _onChanged == null
|
||||
? null
|
||||
: (value) {
|
||||
if (value == null) {
|
||||
return;
|
||||
}
|
||||
singleFuture((this, _kStyledCheckboxChanged), () async {
|
||||
await _onChanged(value);
|
||||
});
|
||||
})),
|
||||
Text(_label, style: textStyle).paddingAll(4.scaled(context)),
|
||||
]);
|
||||
|
||||
if (_decoratorLabel != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue