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

@ -71,7 +71,7 @@ class LoginScaffold extends StatelessWidget {
),
),
),
const _PrivacyButtons(mainAxisAlignment: MainAxisAlignment.center),
const _PrivacyButtons(mainAxisAlignment: .center),
],
),
);
@ -95,31 +95,19 @@ class _PrivacyButtons extends StatelessWidget {
children: [
TextButton(
onPressed: () => launchUrlString(AppConfig.website),
child: Text(
L10n.of(context).website,
style: shadowTextStyle,
),
child: Text(L10n.of(context).website, style: shadowTextStyle),
),
TextButton(
onPressed: () => launchUrlString(AppConfig.supportUrl),
child: Text(
L10n.of(context).help,
style: shadowTextStyle,
),
child: Text(L10n.of(context).help, style: shadowTextStyle),
),
TextButton(
onPressed: () => launchUrl(AppConfig.privacyUrl),
child: Text(
L10n.of(context).privacy,
style: shadowTextStyle,
),
child: Text(L10n.of(context).privacy, style: shadowTextStyle),
),
TextButton(
onPressed: () => PlatformInfos.showDialog(context),
child: Text(
L10n.of(context).about,
style: shadowTextStyle,
),
child: Text(L10n.of(context).about, style: shadowTextStyle),
),
],
),

View file

@ -35,11 +35,10 @@ class MaxWidthBody extends StatelessWidget {
),
child: Material(
shape: RoundedRectangleBorder(
borderRadius:
BorderRadius.circular(AppConfig.borderRadius),
side: BorderSide(
color: theme.dividerColor,
borderRadius: BorderRadius.circular(
AppConfig.borderRadius,
),
side: BorderSide(color: theme.dividerColor),
),
clipBehavior: Clip.hardEdge,
child: Padding(

View file

@ -25,15 +25,8 @@ class TwoColumnLayout extends StatelessWidget {
width: FluffyThemes.columnWidth + FluffyThemes.navRailWidth,
child: mainView,
),
Container(
width: 1.0,
color: theme.dividerColor,
),
Expanded(
child: ClipRRect(
child: sideView,
),
),
Container(width: 1.0, color: theme.dividerColor),
Expanded(child: ClipRRect(child: sideView)),
],
),
),