refactor: Update to Dart 3.10 with . shorthands
This commit is contained in:
parent
75a37f3f7c
commit
1ea649f01e
167 changed files with 3351 additions and 3912 deletions
|
|
@ -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),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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)),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue