Skip to content

Commit

Permalink
Adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
leoafarias committed Apr 25, 2021
1 parent 38a09ab commit 80d6ddc
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
22 changes: 17 additions & 5 deletions lib/components/molecules/project_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
import 'package:sidekick/components/atoms/local_link_button.dart';
import 'package:open_file/open_file.dart';
import 'package:sidekick/components/atoms/typography.dart';
import 'package:sidekick/components/molecules/project_version_select.dart';
import 'package:sidekick/components/molecules/version_install_button.dart';
Expand Down Expand Up @@ -51,12 +51,16 @@ class ProjectItem extends HookWidget {
leading: const Icon(MdiIcons.alphaPBox),
title: Subheading(project.name),
trailing: Tooltip(
message: "Open terminal playground",
message: project.projectDir.absolute.path,
child: IconButton(
icon: const Icon(MdiIcons.openInNew),
iconSize: 20,
splashRadius: 20,
icon: const Icon(MdiIcons.consoleLine),
onPressed: openProjectPlayground,
onPressed: () {
OpenFile.open(
project.projectDir.absolute.path,
);
},
),
),
),
Expand Down Expand Up @@ -84,7 +88,15 @@ class ProjectItem extends HookWidget {
Row(
children: [
const SizedBox(width: 10),
LocalLinkButton(project.projectDir.absolute.path),
Tooltip(
message: "Open terminal playground",
child: IconButton(
iconSize: 20,
splashRadius: 20,
icon: const Icon(MdiIcons.consoleLine),
onPressed: openProjectPlayground,
),
),
const Spacer(),
versionSelect
? Row(
Expand Down
1 change: 1 addition & 0 deletions lib/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ ThemeData _customThemeBuilder({
scaffoldBackgroundColor: scaffoldBackgroundColor,
accentColor: accentColor,
dividerColor: Colors.white10,
toggleableActiveColor: accentColor,
outlinedButtonTheme: OutlinedButtonThemeData(
style: OutlinedButton.styleFrom(
primary: Colors.grey,
Expand Down
9 changes: 1 addition & 8 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ packages:
description:
path: "."
ref: master
resolved-ref: cbb43b9a2f840d1ff34e171f0a2adc4190bf11c2
resolved-ref: "60ed0f266f32a3a3d16bfb90757bc1a2093e75b5"
url: "https://github.com/leoafarias/fvm.git"
source: git
version: "2.0.0-dev.8"
Expand Down Expand Up @@ -662,13 +662,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.14.0+1"
settings_ui:
dependency: "direct main"
description:
name: settings_ui
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
shared_preferences:
dependency: transitive
description:
Expand Down
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ dependencies:
path_provider: ^2.0.1
pub_api_client: ^2.0.1
responsive_grid: ^2.0.0
settings_ui: ^1.0.0
truncate: ^3.0.1
url_launcher: ^6.0.3
watcher: ^1.0.0
Expand Down

0 comments on commit 80d6ddc

Please sign in to comment.