simplified code across the app and consolidated duplicated helpers

This commit is contained in:
2026-09-27 17:29:54 +02:00
parent 3e856d0b1c
commit ee1240f71a
155 changed files with 1772 additions and 2546 deletions
@@ -29,15 +29,11 @@ class AsyncTextButton extends StatelessWidget {
onSuccess: onSuccess,
builder: (context, busy, handler) {
final content = busy
? Row(
mainAxisSize: MainAxisSize.min,
children: [
AppProgressIndicator.small(
color: Theme.of(context).colorScheme.primary,
),
const SizedBox(width: 8),
child,
],
? _leadingLabel(
AppProgressIndicator.small(
color: Theme.of(context).colorScheme.primary,
),
child,
)
: child;
final button = TextButton(onPressed: handler, child: content);