Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
Change-Id: I669ad1bca11111421951c679f171e127197d3864
  • Loading branch information
calcitem committed Dec 25, 2023
1 parent 766edf8 commit ff1a10a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class _UsePerfectDatabaseDialog extends StatelessWidget {
S.of(context).perfectDatabaseDescription,
style: TextStyle(
fontSize:
AppTheme.textScaler.scale(AppTheme.defaultFontSize)),
AppTheme.textScaler.scale(AppTheme.defaultFontSize)),
),
const SizedBox(height: 16),
InkWell(
Expand Down
3 changes: 1 addition & 2 deletions src/ui/flutter_app/lib/misc/about_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ class AboutPage extends StatelessWidget {
Platform.isLinux)
SettingsListTile(
titleString: S.of(context).eula,
onTap: () =>
launchURL(context, Constants.endUserLicenseAgreementUrl),
onTap: () => launchURL(context, Constants.endUserLicenseAgreementUrl),
),
SettingsListTile(
titleString: S.of(context).license,
Expand Down
6 changes: 3 additions & 3 deletions src/ui/flutter_app/lib/shared/services/url.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ Future<void> launchURL(BuildContext context, UrlHelper url) async {
}

final String urlString =
Localizations.localeOf(context).languageCode.startsWith("zh")
? url.baseChinese.substring("https://".length)
: url.base.substring("https://".length);
Localizations.localeOf(context).languageCode.startsWith("zh")
? url.baseChinese.substring("https://".length)
: url.base.substring("https://".length);
final String authority = urlString.substring(0, urlString.indexOf('/'));
final String unencodedPath = urlString.substring(urlString.indexOf('/'));
final Uri uri = Uri.https(authority, unencodedPath);
Expand Down

0 comments on commit ff1a10a

Please sign in to comment.