Skip to content

Commit

Permalink
Added suggestion for new proverbs
Browse files Browse the repository at this point in the history
  • Loading branch information
intoinside committed Jul 30, 2024
1 parent 913afa6 commit cf2980b
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/components/drawer_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:italian_proverbs_badly_translated/screens/favorite_widget.dart';
import 'package:italian_proverbs_badly_translated/config.dart';
import 'package:italian_proverbs_badly_translated/utils.dart';
import 'package:package_info_plus/package_info_plus.dart';
import 'package:url_launcher/url_launcher.dart';

class DrawerWidget extends StatefulWidget {
final int selectedIndex;
Expand Down Expand Up @@ -109,9 +110,14 @@ class _DrawerWidgetState extends State<DrawerWidget> {
applicationVersion: _packageInfo.version,
children: <Widget>[
const Padding(
padding: EdgeInsets.only(top: 15),
padding: EdgeInsets.only(top: 15, bottom: 10),
child: Text(
'Author: Raffaele Intorcia\nFor complaining send me an email'))
'Author: Raffaele Intorcia\nFor complaining send me an email')),
InkWell(
child:
const Text('Suggest a new proverb \u{1F30E}\u{2192}'),
onTap: () => launchUrl(Uri.parse(
'https://github.com/intoinside/ItalianProverbsBadlyTranslated/issues/new'))),
],
);
})
Expand Down
32 changes: 32 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,30 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.3.2"
url_launcher:
dependency: "direct main"
description:
name: url_launcher
sha256: "21b704ce5fa560ea9f3b525b43601c678728ba46725bab9b01187b4831377ed3"
url: "https://pub.dev"
source: hosted
version: "6.3.0"
url_launcher_android:
dependency: transitive
description:
name: url_launcher_android
sha256: "678979703e10d7862c551c736fe6b9f185261bddf141b46672063b99790bc700"
url: "https://pub.dev"
source: hosted
version: "6.3.7"
url_launcher_ios:
dependency: transitive
description:
name: url_launcher_ios
sha256: e43b677296fadce447e987a2f519dcf5f6d1e527dc35d01ffab4fff5b8a7063e
url: "https://pub.dev"
source: hosted
version: "6.3.1"
url_launcher_linux:
dependency: transitive
description:
Expand All @@ -557,6 +581,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.1.1"
url_launcher_macos:
dependency: transitive
description:
name: url_launcher_macos
sha256: "9a1a42d5d2d95400c795b2914c36fdcb525870c752569438e4ebb09a2b5d90de"
url: "https://pub.dev"
source: hosted
version: "3.2.0"
url_launcher_platform_interface:
dependency: transitive
description:
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ dependencies:
overlay_toast_message: ^1.0.2
animate_gradient: ^0.0.2+1
package_info_plus: ^8.0.0
url_launcher: ^6.3.0

dev_dependencies:
flutter_launcher_icons: ^0.13.1
Expand Down

0 comments on commit cf2980b

Please sign in to comment.