Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-01-30 11:13:19 +08:00
parent d6e6e52df2
commit 207ad2753c
4 changed files with 76 additions and 65 deletions

View File

@@ -8,12 +8,14 @@ Widget avatars({
}) {
const gap = 6.0;
const size = 22.0;
const padding = 0.8;
const offset = size - gap;
const imgSize = size - 2 * padding;
if (users.length == 1) {
return NetworkImgLayer(
src: users.first.face,
width: size,
height: size,
width: imgSize,
height: imgSize,
type: .avatar,
);
} else {
@@ -36,11 +38,11 @@ Widget avatars({
child: DecoratedBox(
decoration: decoration,
child: Padding(
padding: const .all(.8),
padding: const .all(padding),
child: NetworkImgLayer(
src: e.$2.face,
width: size - .8,
height: size - .8,
width: imgSize,
height: imgSize,
type: .avatar,
),
),

View File

@@ -31,7 +31,9 @@ Future<TimeOfDay?> showTimePicker({
assert(debugCheckHasMaterialLocalizations(context));
final Widget dialog = DialogTheme(
data: const DialogThemeData(constraints: BoxConstraints(minWidth: 280.0)),
data: DialogTheme.of(
context,
).copyWith(constraints: const BoxConstraints(minWidth: 280.0)),
child: TimePickerDialog(
initialTime: initialTime,
initialEntryMode: initialEntryMode,