From cf5e5947db31800ef3f4b3391d745447687ba19f Mon Sep 17 00:00:00 2001 From: Alesia Date: Fri, 24 Nov 2023 08:27:33 +0300 Subject: [PATCH] update to 4.0.1 --- CHANGELOG.md | 3 +++ example/pubspec.lock | 28 ++++++++++++------------- l10n.yaml | 7 ------- lib/src/domain/entities/suggestion.dart | 9 ++++---- pubspec.yaml | 2 +- 5 files changed, 22 insertions(+), 27 deletions(-) delete mode 100644 l10n.yaml diff --git a/CHANGELOG.md b/CHANGELOG.md index f0766c7..3edeb40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.4.1 +* Updates to support flutter version 3.16.0 + ## 0.4.0 * New parameter `navigatorKey` * Ability to delete the comment for owner and admin diff --git a/example/pubspec.lock b/example/pubspec.lock index 1a4fa16..dc87c47 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -45,10 +45,10 @@ packages: dependency: transitive description: name: collection - sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a url: "https://pub.dev" source: hosted - version: "1.17.2" + version: "1.18.0" cupertino_icons: dependency: "direct main" description: @@ -135,10 +135,10 @@ packages: dependency: transitive description: name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" + sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" path: dependency: transitive description: @@ -180,18 +180,18 @@ packages: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.11.1" stream_channel: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" string_scanner: dependency: transitive description: @@ -206,7 +206,7 @@ packages: path: ".." relative: true source: path - version: "0.3.1" + version: "0.4.1" term_glyph: dependency: transitive description: @@ -219,10 +219,10 @@ packages: dependency: transitive description: name: test_api - sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" url: "https://pub.dev" source: hosted - version: "0.6.0" + version: "0.6.1" vector_graphics: dependency: transitive description: @@ -259,10 +259,10 @@ packages: dependency: transitive description: name: web - sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 url: "https://pub.dev" source: hosted - version: "0.1.4-beta" + version: "0.3.0" wtf_sliding_sheet: dependency: transitive description: @@ -280,5 +280,5 @@ packages: source: hosted version: "6.3.0" sdks: - dart: ">=3.1.0-185.0.dev <4.0.0" + dart: ">=3.2.0-194.0.dev <4.0.0" flutter: ">=3.7.0-0" diff --git a/l10n.yaml b/l10n.yaml deleted file mode 100644 index 05e14cf..0000000 --- a/l10n.yaml +++ /dev/null @@ -1,7 +0,0 @@ -arb-dir: lib/src/presentation/l10n -template-arb-file: app_en.arb -output-class: SuggestionsLocalizations -output-localization-file: suggestions_localizations.dart -synthetic-package: false -preferred-supported-locales: "en" -use-deferred-loading: false diff --git a/lib/src/domain/entities/suggestion.dart b/lib/src/domain/entities/suggestion.dart index 7afad28..f2828a5 100644 --- a/lib/src/domain/entities/suggestion.dart +++ b/lib/src/domain/entities/suggestion.dart @@ -1,5 +1,4 @@ import 'package:equatable/equatable.dart'; -import 'package:flutter/foundation.dart'; import 'package:intl/intl.dart'; import 'package:suggest_a_feature/src/domain/entities/comment.dart'; import 'package:suggest_a_feature/src/presentation/utils/date_utils.dart'; @@ -129,9 +128,9 @@ class Suggestion extends Equatable { return { 'title': title, 'description': description, - 'labels': labels.map(describeEnum).toList(), + 'labels': labels.map((label) => label.name).toList(), 'images': images, - 'status': describeEnum(status), + 'status': status.name, }; } @@ -203,11 +202,11 @@ class CreateSuggestionModel { return { 'title': title, 'description': description, - 'labels': labels.map(describeEnum).toList(), + 'labels': labels.map((label) => label.name).toList(), 'images': images, 'author_id': authorId, 'is_anonymous': isAnonymous, - 'status': describeEnum(status), + 'status': status.name, 'creation_time': DateFormat('yyyy-MM-ddTHH:mm:ss').format(DateTime.now()), }; } diff --git a/pubspec.yaml b/pubspec.yaml index b74227f..5b8f1fb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: suggest_a_feature description: Ready-made Flutter package for collecting suggestions from users. -version: 0.4.0 +version: 0.4.1 repository: https://github.com/What-the-Flutter/Suggest-a-Feature homepage: https://pub.dev/packages/suggest_a_feature