refactor: Update to Dart 3.10 with . shorthands

This commit is contained in:
Christian Kußowski 2025-11-30 12:54:06 +01:00
commit 1ea649f01e
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
167 changed files with 3351 additions and 3912 deletions

View file

@ -33,7 +33,7 @@ class NewGroupView extends StatelessWidget {
),
body: MaxWidthBody(
child: Column(
mainAxisSize: MainAxisSize.min,
mainAxisSize: .min,
children: <Widget>[
Padding(
padding: const EdgeInsets.all(16.0),
@ -104,8 +104,9 @@ class NewGroupView extends StatelessWidget {
curve: FluffyThemes.animationCurve,
child: controller.publicGroup
? SwitchListTile.adaptive(
contentPadding:
const EdgeInsets.symmetric(horizontal: 32),
contentPadding: const EdgeInsets.symmetric(
horizontal: 32,
),
secondary: const Icon(Icons.search_outlined),
title: Text(L10n.of(context).groupCanBeFoundViaSearch),
value: controller.groupCanBeFound,
@ -121,17 +122,16 @@ class NewGroupView extends StatelessWidget {
child: controller.createGroupType == CreateGroupType.space
? const SizedBox.shrink()
: SwitchListTile.adaptive(
contentPadding:
const EdgeInsets.symmetric(horizontal: 32),
contentPadding: const EdgeInsets.symmetric(
horizontal: 32,
),
secondary: Icon(
Icons.lock_outlined,
color: theme.colorScheme.onSurface,
),
title: Text(
L10n.of(context).enableEncryption,
style: TextStyle(
color: theme.colorScheme.onSurface,
),
style: TextStyle(color: theme.colorScheme.onSurface),
),
value: !controller.publicGroup,
onChanged: null,
@ -142,8 +142,9 @@ class NewGroupView extends StatelessWidget {
curve: FluffyThemes.animationCurve,
child: controller.createGroupType == CreateGroupType.space
? ListTile(
contentPadding:
const EdgeInsets.symmetric(horizontal: 32),
contentPadding: const EdgeInsets.symmetric(
horizontal: 32,
),
trailing: const Padding(
padding: EdgeInsets.symmetric(horizontal: 16.0),
child: Icon(Icons.info_outlined),
@ -157,8 +158,9 @@ class NewGroupView extends StatelessWidget {
child: SizedBox(
width: double.infinity,
child: ElevatedButton(
onPressed:
controller.loading ? null : controller.submitAction,
onPressed: controller.loading
? null
: controller.submitAction,
child: controller.loading
? const LinearProgressIndicator()
: Text(
@ -181,9 +183,7 @@ class NewGroupView extends StatelessWidget {
),
title: Text(
error.toLocalizedString(context),
style: TextStyle(
color: theme.colorScheme.error,
),
style: TextStyle(color: theme.colorScheme.error),
),
),
),