Skip to content

Commit

Permalink
Improve app drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
TechAurelian committed Oct 29, 2024
1 parent 95077ec commit cf97d9e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions lib/common/strings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const String appName = 'Hello World Counters';

const String drawerTitle = appName;
const String settingsItemTitle = 'Settings';
const String aboutItemTitle = 'About This App';
const String viewSourceItemTitle = 'View Source Code';
const String feedbackItemTitle = 'Send Feedback';
const String aboutItemTitle = 'About this Hello World app';
const String viewSourceItemTitle = 'View source code';
const String feedbackItemTitle = 'Send feedback';

const Map<MenuAction, String> menuActions = {
MenuAction.reset: 'Reset counter',
Expand Down
6 changes: 3 additions & 3 deletions lib/widgets/counters_drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,18 @@ class CountersDrawer extends StatelessWidget {
onTap: () => _onExtraActionTap(context, DrawerExtraActions.settings),
),
ListTile(
leading: const Icon(Icons.help_outline),
leading: const Icon(Icons.help),
title: const Text(strings.aboutItemTitle),
onTap: () => _onExtraActionTap(context, DrawerExtraActions.about),
),
ListTile(
leading: const Icon(Icons.flutter_dash),
leading: const Icon(Icons.source),
title: const Text(strings.viewSourceItemTitle),
onTap: () => _onExtraActionTap(context, DrawerExtraActions.viewSource),
),
const Divider(),
ListTile(
leading: const Icon(Icons.stars),
leading: const Icon(Icons.rate_review),
title: const Text(strings.feedbackItemTitle),
onTap: () => _onExtraActionTap(context, DrawerExtraActions.feedback),
),
Expand Down
20 changes: 10 additions & 10 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ packages:
dependency: "direct dev"
description:
name: flutter_lints
sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c"
sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1"
url: "https://pub.dev"
source: hosted
version: "4.0.0"
version: "5.0.0"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down Expand Up @@ -148,10 +148,10 @@ packages:
dependency: transitive
description:
name: lints
sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235"
sha256: "3315600f3fb3b135be672bf4a178c55f274bebe368325ae18462c89ac1e3b413"
url: "https://pub.dev"
source: hosted
version: "4.0.0"
version: "5.0.0"
matcher:
dependency: transitive
description:
Expand Down Expand Up @@ -260,18 +260,18 @@ packages:
dependency: "direct main"
description:
name: share_plus
sha256: fb5319f3aab4c5dda5ebb92dca978179ba21f8c783ee4380910ef4c1c6824f51
sha256: "3af2cda1752e5c24f2fc04b6083b40f013ffe84fb90472f30c6499a9213d5442"
url: "https://pub.dev"
source: hosted
version: "8.0.3"
version: "10.1.1"
share_plus_platform_interface:
dependency: transitive
description:
name: share_plus_platform_interface
sha256: "251eb156a8b5fa9ce033747d73535bf53911071f8d3b6f4f0b578505ce0d4496"
sha256: c57c0bbfec7142e3a0f55633be504b796af72e60e3c791b44d5a017b985f7a48
url: "https://pub.dev"
source: hosted
version: "3.4.0"
version: "5.0.1"
shared_preferences:
dependency: "direct main"
description:
Expand Down Expand Up @@ -489,10 +489,10 @@ packages:
dependency: transitive
description:
name: web
sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27"
sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb
url: "https://pub.dev"
source: hosted
version: "0.5.1"
version: "1.1.0"
win32:
dependency: transitive
description:
Expand Down
10 changes: 5 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.2.0+4
version: 1.3.0+5

environment:
sdk: ^3.5.4
Expand All @@ -32,9 +32,9 @@ dependencies:
flutter:
sdk: flutter

shared_preferences: ^2.2.3
share_plus: ^8.0.3
url_launcher: ^6.2.6
shared_preferences: ^2.3.2
share_plus: ^10.1.1
url_launcher: ^6.3.1

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
Expand All @@ -49,7 +49,7 @@ dev_dependencies:
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^4.0.0
flutter_lints: ^5.0.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down

0 comments on commit cf97d9e

Please sign in to comment.