Skip to content

Commit

Permalink
Updated dependencies (#205)
Browse files Browse the repository at this point in the history
* Changed "Quick actions" to "snippets"

* Changed Community Actions to Snippets

* Version bump

* Version bump

* Changed snippet to code snippet

* Upgraded dependencies
  • Loading branch information
bostrot authored Aug 13, 2023
1 parent 231b67f commit 2ddfe87
Show file tree
Hide file tree
Showing 7 changed files with 154 additions and 148 deletions.
8 changes: 4 additions & 4 deletions lib/dialogs/info_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@ class ClickableDependency extends StatelessWidget {
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
TextButton(
Button(
onPressed: () =>
launchUrl(Uri.parse("https://pub.dev/packages/$name")),
child: Text(name)),
TextButton(
Button(
onPressed: () => launchUrl(
Uri.parse("https://pub.dev/packages/$name/license")),
child: const Text("(LICENSE)")),
Expand All @@ -178,7 +178,7 @@ class ClickableUrl extends StatelessWidget {
Widget build(BuildContext context) {
return MouseRegion(
cursor: SystemMouseCursors.click,
child: TextButton(
child: Button(
onPressed: () async {
plausible.event(name: clickEvent);
launchUrl(Uri.parse(url));
Expand All @@ -204,7 +204,7 @@ class ClickableText extends StatelessWidget {
Widget build(BuildContext context) {
return MouseRegion(
cursor: SystemMouseCursors.click,
child: TextButton(onPressed: onPressed, child: Text(text)),
child: Button(onPressed: onPressed, child: Text(text)),
);
}
}
2 changes: 1 addition & 1 deletion lib/dialogs/install_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class InstallDialog extends StatelessWidget {
color: const Color.fromRGBO(0, 0, 0, 0.2),
child: Padding(
padding: const EdgeInsets.only(left: 4.0, right: 4.0),
child: TextButton(
child: Button(
onPressed: () {
plausible.event(name: "wsl_install");
WSLApi().installWSL();
Expand Down
6 changes: 2 additions & 4 deletions lib/nav/init.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import 'package:dio/dio.dart';
import 'package:fluent_ui/fluent_ui.dart' hide Page;
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:localization/localization.dart';
import 'package:system_theme/system_theme.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:wsl2distromanager/api/app.dart';
import 'package:wsl2distromanager/components/constants.dart';
Expand Down Expand Up @@ -104,9 +102,9 @@ initRoot(statusMsg) async {
// }

// Get system dark mode
if (SystemTheme.isDarkMode) {
if (ThemeMode.system == ThemeMode.dark) {
AppTheme().mode = ThemeMode.dark;
} else {
} else if (ThemeMode.system == ThemeMode.light) {
AppTheme().mode = ThemeMode.light;
}
}
Loading

0 comments on commit 2ddfe87

Please sign in to comment.