chore: Nicer checkboxes

pull/1859/head
Christian Kußowski 5 months ago
parent 5fb882955c
commit dbdd25aeb2
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652

@ -1,3 +1,4 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:collection/collection.dart'; import 'package:collection/collection.dart';
@ -262,12 +263,11 @@ class HtmlMessage extends StatelessWidget {
child: Padding( child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0), padding: const EdgeInsets.symmetric(horizontal: 8.0),
child: SizedBox.square( child: SizedBox.square(
dimension: fontSize, dimension: fontSize + 2,
child: Checkbox.adaptive( child: CupertinoCheckbox(
checkColor: textColor, checkColor: textColor,
side: BorderSide(color: textColor), side: BorderSide(color: textColor),
activeColor: textColor.withAlpha(64), activeColor: textColor.withAlpha(64),
visualDensity: VisualDensity.compact,
value: value:
staticallyChecked || checkedByReaction != null, staticallyChecked || checkedByReaction != null,
onChanged: eventId == null || onChanged: eventId == null ||

Loading…
Cancel
Save