From fbd391a3a040ddebd9a456c2259858bb685a96e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vedran=20Balagovi=C4=87?= Date: Tue, 12 Nov 2024 10:04:06 +0100 Subject: [PATCH] Updated readme --- CHANGELOG.md | 7 ++++++- README.md | 6 ++++-- example/lib/screens/intro_screen.dart | 26 ++++++++++++++++++++------ example/pubspec.yaml | 2 +- pubspec.yaml | 2 +- 5 files changed, 32 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ce4d5b..78998ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,4 +16,9 @@ Added new widgets ## 1.0.4 -Updated documentation \ No newline at end of file +Updated documentation + +## 1.0.5 + +Updated links + diff --git a/README.md b/README.md index 5e0d592..c08cc5d 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,11 @@ # Flutter Builder UI Kit -A flexible and customizable UI builder package for Flutter applications part of [Flutter Pre-setup](https://github.com/vbalagovic/flutter-presetup/tree/main) and [Flutter Builder](https://flutter-builder.app/) low code generation and easy project setup app. +A flexible and customizable UI builder package for Flutter applications; part of [Flutter Pre-setup](https://github.com/vbalagovic/flutter-presetup/tree/main) and [Flutter Builder](https://flutter-builder.app/) low code generation and easy project setup app. Full examples and documentation on [UI kit website](https://widgets.flutter-builder.app/) +Join the [Discord Server](https://discord.gg/y2T4m4t72W) for more information about UI Kit and Flutter builder itself. + ## Features - Easy-to-use builder patterns for common UI components @@ -18,7 +20,7 @@ Add this to your package's `pubspec.yaml` file: ```yaml dependencies: - flutter_builder_ui_kit: ^1.0.4 + flutter_builder_ui_kit: ^1.0.5 ``` ## Usage diff --git a/example/lib/screens/intro_screen.dart b/example/lib/screens/intro_screen.dart index 3f981cd..1ffd0e0 100644 --- a/example/lib/screens/intro_screen.dart +++ b/example/lib/screens/intro_screen.dart @@ -44,6 +44,14 @@ class IntroScreen extends StatelessWidget { // CTA button with links _buildLinksSection(), + + const Text( + 'For more informations contact on email: info@devstarter.io' + 'Or join our discord server: https://discord.gg/y2T4m4t72W', + textAlign: TextAlign.center, + style: TextStyle(fontSize: 16), + ), + const SizedBox(height: 24), ], ), ), @@ -102,19 +110,25 @@ class IntroScreen extends StatelessWidget { label: const Text('Explore Flutter Builder'), onPressed: () async { const url = 'https://flutter-builder.app/'; - if (await canLaunchUrl(Uri.parse(url))) { - await canLaunchUrl(Uri.parse(url)); + if (!await launchUrl( + Uri.parse(url), + mode: LaunchMode.externalApplication, + )) { + throw Exception('Could not launch $url'); } }, ), const SizedBox(height: 8), ElevatedButton.icon( icon: const Icon(Icons.book), - label: const Text('View Documentation'), + label: const Text('Discord Server'), onPressed: () async { - const url = 'https://flutter-builder-ui-kit.web.app/'; - if (await canLaunchUrl(Uri.parse(url))) { - await canLaunchUrl(Uri.parse(url)); + const url = 'https://discord.gg/y2T4m4t72W'; + if (!await launchUrl( + Uri.parse(url), + mode: LaunchMode.externalApplication, + )) { + throw Exception('Could not launch $url'); } }, ), diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 7c105a7..c5fe406 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -16,7 +16,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.0.4+3 +version: 1.0.5+5 environment: sdk: ^3.5.3 diff --git a/pubspec.yaml b/pubspec.yaml index 71ae523..2d66094 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_builder_ui_kit description: "A flexible and customizable UI widgets package for Flutter applications" -version: 1.0.4 +version: 1.0.5 homepage: https://github.com/vbalagovic/flutter-builder-ui-kit environment: