bug fixes + comments status

This commit is contained in:
MohammadTaha Basiri 2022-06-06 14:58:28 +04:30
parent 3e17f6da48
commit d1bd45c825
11 changed files with 117 additions and 83 deletions

View File

@ -8,6 +8,7 @@ class CommentData {
final String createdAt; final String createdAt;
bool liked; bool liked;
bool disliked; bool disliked;
int status;
final FeedbackData feedback; final FeedbackData feedback;
final UserOverview user; final UserOverview user;
final List<Reply> replies; final List<Reply> replies;
@ -21,6 +22,7 @@ class CommentData {
required this.feedback, required this.feedback,
required this.user, required this.user,
required this.replies, required this.replies,
required this.status,
}); });
factory CommentData.fromJson(Map<String, dynamic> json) => CommentData( factory CommentData.fromJson(Map<String, dynamic> json) => CommentData(
@ -36,6 +38,7 @@ class CommentData {
(reply) => Reply.fromJson(reply), (reply) => Reply.fromJson(reply),
), ),
), ),
status: json['status'],
); );
Map<String, dynamic> toJson() => { Map<String, dynamic> toJson() => {

View File

@ -3,6 +3,7 @@ import 'user.dart';
class Reply { class Reply {
int id; int id;
int status;
final String text; final String text;
final String createdAt; final String createdAt;
final bool liked; final bool liked;
@ -20,6 +21,7 @@ class Reply {
required this.feedback, required this.feedback,
required this.user, required this.user,
required this.toUser, required this.toUser,
required this.status,
}); });
factory Reply.fromJson(Map<String, dynamic> json) => Reply( factory Reply.fromJson(Map<String, dynamic> json) => Reply(
@ -31,6 +33,7 @@ class Reply {
feedback: FeedbackData.fromJson(json['feedback']), feedback: FeedbackData.fromJson(json['feedback']),
user: UserOverview.fromJson(json['user']), user: UserOverview.fromJson(json['user']),
toUser: UserOverview.fromJson(json['toUser']), toUser: UserOverview.fromJson(json['toUser']),
status: json['status'],
); );
Map<String, dynamic> toJson() => { Map<String, dynamic> toJson() => {

View File

@ -73,8 +73,11 @@ class _UsernameInputState extends State<UsernameInput> {
.caption! .caption!
.copyWith(color: Theme.of(context).colorScheme.primary), .copyWith(color: Theme.of(context).colorScheme.primary),
recognizer: TapGestureRecognizer() recognizer: TapGestureRecognizer()
..onTap = () => ..onTap = () => launchUrl(
launch('https://didvan.app/termsOfUse.html#conditions'), Uri.parse(
'https://didvan.app/termsOfUse.html#conditions',
),
),
), ),
const TextSpan(text: 'و\n'), const TextSpan(text: 'و\n'),
TextSpan( TextSpan(
@ -84,8 +87,11 @@ class _UsernameInputState extends State<UsernameInput> {
.caption! .caption!
.copyWith(color: Theme.of(context).colorScheme.primary), .copyWith(color: Theme.of(context).colorScheme.primary),
recognizer: TapGestureRecognizer() recognizer: TapGestureRecognizer()
..onTap = () => ..onTap = () => launchUrl(
launch('https://didvan.app/termsOfUse.html#privacy'), Uri.parse(
'https://didvan.app/termsOfUse.html#privacy',
),
),
), ),
const TextSpan(text: 'را می‌پذیرم'), const TextSpan(text: 'را می‌پذیرم'),
], ],

View File

@ -102,6 +102,7 @@ class CommentsState extends CoreProvier {
fullName: user.fullName, fullName: user.fullName,
photo: user.photo, photo: user.photo,
), ),
status: 2,
), ),
); );
} else { } else {
@ -120,6 +121,7 @@ class CommentsState extends CoreProvier {
photo: user.photo, photo: user.photo,
), ),
replies: [], replies: [],
status: 2,
), ),
); );
} }
@ -135,6 +137,7 @@ class CommentsState extends CoreProvier {
if (replyingTo != null) { if (replyingTo != null) {
body.addAll({'replyUserId': replyingTo!.id}); body.addAll({'replyUserId': replyingTo!.id});
} }
body.addAll({'status': 2});
showReplyBox = false; showReplyBox = false;
update(); update();
@ -190,6 +193,7 @@ class CommentsState extends CoreProvier {
feedback: rep.feedback, feedback: rep.feedback,
user: rep.user, user: rep.user,
replies: [], replies: [],
status: 2,
), ),
), ),
); );

View File

@ -119,6 +119,28 @@ class CommentState extends State<Comment> {
const SizedBox(height: 8), const SizedBox(height: 8),
DidvanText(comment.text), DidvanText(comment.text),
const SizedBox(height: 8), const SizedBox(height: 8),
if (comment.status == 2)
Row(
children: [
Icon(
Icons.circle,
color: Theme.of(context)
.colorScheme
.secondary
.withOpacity(0.3),
size: 18,
),
const SizedBox(width: 4),
DidvanText(
'در انتظار تایید',
color: Theme.of(context)
.colorScheme
.secondary
.withOpacity(0.3),
),
],
),
const SizedBox(height: 8),
Row( Row(
children: [ children: [
InkWrapper( InkWrapper(

View File

@ -87,7 +87,7 @@ class Settings extends StatelessWidget {
MenuOption( MenuOption(
icon: DidvanIcons.didvan_solid, icon: DidvanIcons.didvan_solid,
title: 'معرفی دیدوان', title: 'معرفی دیدوان',
onTap: () => launch('https://didvan.app/#info'), onTap: () => launchUrl(Uri.parse('https://didvan.app/#info')),
), ),
const DidvanDivider(), const DidvanDivider(),
MenuOption( MenuOption(
@ -104,8 +104,9 @@ class Settings extends StatelessWidget {
MenuOption( MenuOption(
icon: DidvanIcons.alert_regular, icon: DidvanIcons.alert_regular,
title: 'حریم خصوصی', title: 'حریم خصوصی',
onTap: () => onTap: () => launchUrl(
launch('https://didvan.app/termsOfUse.html#privacy'), Uri.parse('https://didvan.app/termsOfUse.html#privacy'),
),
), ),
], ],
), ),

View File

@ -109,7 +109,7 @@ class _StatisticDetailsState extends State<StatisticDetails> {
minX: 0, minX: 0,
maxX: state.datas.length.toDouble() - 1, maxX: state.datas.length.toDouble() - 1,
maxY: state.maxValue * 1.02, maxY: state.maxValue * 1.02,
minY: state.minValue! * 0.98, minY: (state.minValue ?? 0) * 0.98,
gridData: FlGridData(show: false), gridData: FlGridData(show: false),
borderData: FlBorderData(show: false), borderData: FlBorderData(show: false),
titlesData: FlTitlesData(show: false), titlesData: FlTitlesData(show: false),

View File

@ -65,7 +65,7 @@ class StudioDetailsWidget extends StatelessWidget {
key: ValueKey(state.studio.id), key: ValueKey(state.studio.id),
data: state.studio.description, data: state.studio.description,
onAnchorTap: (href, context, map, element) => onAnchorTap: (href, context, map, element) =>
launch(href!), launchUrl(Uri.parse(href!)),
style: { style: {
'*': Style( '*': Style(
direction: TextDirection.rtl, direction: TextDirection.rtl,

View File

@ -268,7 +268,7 @@ class _DidvanPageViewState extends State<DidvanPageView> {
), ),
); );
} else { } else {
launch(href); launchUrl(Uri.parse(href));
} }
}, },
style: { style: {

View File

@ -7,14 +7,14 @@ packages:
name: assets_audio_player name: assets_audio_player
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.4+1" version: "3.0.4+3"
assets_audio_player_web: assets_audio_player_web:
dependency: transitive dependency: transitive
description: description:
name: assets_audio_player_web name: assets_audio_player_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.4+1" version: "3.0.4+3"
async: async:
dependency: transitive dependency: transitive
description: description:
@ -35,7 +35,7 @@ packages:
name: better_player name: better_player
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.0.81" version: "0.0.83"
boolean_selector: boolean_selector:
dependency: transitive dependency: transitive
description: description:
@ -49,14 +49,14 @@ packages:
name: bot_toast name: bot_toast
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.0.1" version: "4.0.2"
cached_network_image: cached_network_image:
dependency: "direct main" dependency: "direct main"
description: description:
name: cached_network_image name: cached_network_image
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.2.0" version: "3.2.1"
cached_network_image_platform_interface: cached_network_image_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -77,7 +77,7 @@ packages:
name: carousel_slider name: carousel_slider
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.0.0" version: "4.1.1"
characters: characters:
dependency: transitive dependency: transitive
description: description:
@ -112,28 +112,28 @@ packages:
name: cross_file name: cross_file
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.3.2" version: "0.3.3+1"
crypto: crypto:
dependency: transitive dependency: transitive
description: description:
name: crypto name: crypto
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.1" version: "3.0.2"
csslib: csslib:
dependency: transitive dependency: transitive
description: description:
name: csslib name: csslib
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.17.1" version: "0.17.2"
cupertino_icons: cupertino_icons:
dependency: "direct main" dependency: "direct main"
description: description:
name: cupertino_icons name: cupertino_icons
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.4" version: "1.0.5"
day_night_time_picker: day_night_time_picker:
dependency: "direct main" dependency: "direct main"
description: description:
@ -168,7 +168,7 @@ packages:
name: ffi name: ffi
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.2" version: "2.0.0"
file: file:
dependency: transitive dependency: transitive
description: description:
@ -182,49 +182,49 @@ packages:
name: firebase_core name: firebase_core
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.15.0" version: "1.17.1"
firebase_core_platform_interface: firebase_core_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: firebase_core_platform_interface name: firebase_core_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.2.5" version: "4.4.0"
firebase_core_web: firebase_core_web:
dependency: transitive dependency: transitive
description: description:
name: firebase_core_web name: firebase_core_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.6.2" version: "1.6.4"
firebase_messaging: firebase_messaging:
dependency: "direct main" dependency: "direct main"
description: description:
name: firebase_messaging name: firebase_messaging
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "11.2.14" version: "11.4.1"
firebase_messaging_platform_interface: firebase_messaging_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: firebase_messaging_platform_interface name: firebase_messaging_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.3.0" version: "3.5.1"
firebase_messaging_web: firebase_messaging_web:
dependency: transitive dependency: transitive
description: description:
name: firebase_messaging_web name: firebase_messaging_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.2.12" version: "2.4.1"
fl_chart: fl_chart:
dependency: "direct main" dependency: "direct main"
description: description:
name: fl_chart name: fl_chart
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.50.1" version: "0.50.6"
flutter: flutter:
dependency: "direct main" dependency: "direct main"
description: flutter description: flutter
@ -236,7 +236,7 @@ packages:
name: flutter_blurhash name: flutter_blurhash
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.6.8" version: "0.7.0"
flutter_cache_manager: flutter_cache_manager:
dependency: transitive dependency: transitive
description: description:
@ -269,7 +269,7 @@ packages:
name: flutter_plugin_android_lifecycle name: flutter_plugin_android_lifecycle
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.5" version: "2.0.6"
flutter_secure_storage: flutter_secure_storage:
dependency: "direct main" dependency: "direct main"
description: description:
@ -325,7 +325,7 @@ packages:
name: flutter_svg name: flutter_svg
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.3" version: "1.1.0"
flutter_test: flutter_test:
dependency: "direct dev" dependency: "direct dev"
description: flutter description: flutter
@ -349,14 +349,14 @@ packages:
name: flutter_widget_from_html_core name: flutter_widget_from_html_core
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.8.5+1" version: "0.8.5+3"
fwfh_text_style: fwfh_text_style:
dependency: transitive dependency: transitive
description: description:
name: fwfh_text_style name: fwfh_text_style
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.7.3+1" version: "2.7.3+2"
graphs: graphs:
dependency: transitive dependency: transitive
description: description:
@ -384,7 +384,7 @@ packages:
name: http_parser name: http_parser
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.0.0" version: "4.0.1"
image_cropper: image_cropper:
dependency: "direct main" dependency: "direct main"
description: description:
@ -398,35 +398,35 @@ packages:
name: image_picker name: image_picker
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.8.5" version: "0.8.5+3"
image_picker_android: image_picker_android:
dependency: transitive dependency: transitive
description: description:
name: image_picker_android name: image_picker_android
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.8.4+11" version: "0.8.5"
image_picker_for_web: image_picker_for_web:
dependency: transitive dependency: transitive
description: description:
name: image_picker_for_web name: image_picker_for_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.6" version: "2.1.8"
image_picker_ios: image_picker_ios:
dependency: transitive dependency: transitive
description: description:
name: image_picker_ios name: image_picker_ios
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.8.4+11" version: "0.8.5+5"
image_picker_platform_interface: image_picker_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: image_picker_platform_interface name: image_picker_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.4.4" version: "2.5.0"
intl: intl:
dependency: transitive dependency: transitive
description: description:
@ -489,7 +489,7 @@ packages:
name: octo_image name: octo_image
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.1" version: "1.0.2"
path: path:
dependency: transitive dependency: transitive
description: description:
@ -517,49 +517,49 @@ packages:
name: path_provider name: path_provider
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.9" version: "2.0.10"
path_provider_android: path_provider_android:
dependency: transitive dependency: transitive
description: description:
name: path_provider_android name: path_provider_android
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.12" version: "2.0.14"
path_provider_ios: path_provider_ios:
dependency: transitive dependency: transitive
description: description:
name: path_provider_ios name: path_provider_ios
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.8" version: "2.0.9"
path_provider_linux: path_provider_linux:
dependency: transitive dependency: transitive
description: description:
name: path_provider_linux name: path_provider_linux
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.5" version: "2.1.7"
path_provider_macos: path_provider_macos:
dependency: transitive dependency: transitive
description: description:
name: path_provider_macos name: path_provider_macos
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.5" version: "2.0.6"
path_provider_platform_interface: path_provider_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: path_provider_platform_interface name: path_provider_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.3" version: "2.0.4"
path_provider_windows: path_provider_windows:
dependency: transitive dependency: transitive
description: description:
name: path_provider_windows name: path_provider_windows
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.5" version: "2.1.0"
pedantic: pedantic:
dependency: transitive dependency: transitive
description: description:
@ -608,21 +608,21 @@ packages:
name: persian_datetime_picker name: persian_datetime_picker
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.4.0" version: "2.5.0"
persian_number_utility: persian_number_utility:
dependency: "direct main" dependency: "direct main"
description: description:
name: persian_number_utility name: persian_number_utility
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.1" version: "1.1.2"
petitparser: petitparser:
dependency: transitive dependency: transitive
description: description:
name: petitparser name: petitparser
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "4.4.0" version: "5.0.0"
pin_code_fields: pin_code_fields:
dependency: "direct main" dependency: "direct main"
description: description:
@ -657,7 +657,7 @@ packages:
name: provider name: provider
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "6.0.2" version: "6.0.3"
record: record:
dependency: "direct main" dependency: "direct main"
description: description:
@ -692,7 +692,7 @@ packages:
name: rxdart name: rxdart
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.27.3" version: "0.27.4"
skeleton_text: skeleton_text:
dependency: "direct main" dependency: "direct main"
description: description:
@ -774,7 +774,7 @@ packages:
name: typed_data name: typed_data
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.3.0" version: "1.3.1"
universal_html: universal_html:
dependency: "direct main" dependency: "direct main"
description: description:
@ -795,35 +795,35 @@ packages:
name: url_launcher name: url_launcher
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "6.0.20" version: "6.1.2"
url_launcher_android: url_launcher_android:
dependency: transitive dependency: transitive
description: description:
name: url_launcher_android name: url_launcher_android
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "6.0.15" version: "6.0.17"
url_launcher_ios: url_launcher_ios:
dependency: transitive dependency: transitive
description: description:
name: url_launcher_ios name: url_launcher_ios
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "6.0.15" version: "6.0.17"
url_launcher_linux: url_launcher_linux:
dependency: transitive dependency: transitive
description: description:
name: url_launcher_linux name: url_launcher_linux
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.0" version: "3.0.1"
url_launcher_macos: url_launcher_macos:
dependency: transitive dependency: transitive
description: description:
name: url_launcher_macos name: url_launcher_macos
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.0" version: "3.0.1"
url_launcher_platform_interface: url_launcher_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -837,14 +837,14 @@ packages:
name: url_launcher_web name: url_launcher_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.9" version: "2.0.11"
url_launcher_windows: url_launcher_windows:
dependency: transitive dependency: transitive
description: description:
name: url_launcher_windows name: url_launcher_windows
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.0" version: "3.0.1"
uuid: uuid:
dependency: transitive dependency: transitive
description: description:
@ -865,14 +865,14 @@ packages:
name: visibility_detector name: visibility_detector
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.2.2" version: "0.3.3"
wakelock: wakelock:
dependency: transitive dependency: transitive
description: description:
name: wakelock name: wakelock
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.5.6" version: "0.6.1+2"
wakelock_macos: wakelock_macos:
dependency: transitive dependency: transitive
description: description:
@ -907,35 +907,35 @@ packages:
name: webview_flutter name: webview_flutter
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.2" version: "3.0.4"
webview_flutter_android: webview_flutter_android:
dependency: transitive dependency: transitive
description: description:
name: webview_flutter_android name: webview_flutter_android
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.8.5" version: "2.8.9"
webview_flutter_platform_interface: webview_flutter_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: webview_flutter_platform_interface name: webview_flutter_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.8.1" version: "1.9.1"
webview_flutter_wkwebview: webview_flutter_wkwebview:
dependency: transitive dependency: transitive
description: description:
name: webview_flutter_wkwebview name: webview_flutter_wkwebview
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.7.2" version: "2.8.1"
win32: win32:
dependency: transitive dependency: transitive
description: description:
name: win32 name: win32
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.5.1" version: "2.7.0"
xdg_directories: xdg_directories:
dependency: transitive dependency: transitive
description: description:
@ -949,7 +949,7 @@ packages:
name: xml name: xml
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "5.3.1" version: "6.1.0"
sdks: sdks:
dart: ">=2.17.0-0 <3.0.0" dart: ">=2.17.0 <3.0.0"
flutter: ">=2.10.0" flutter: ">=3.0.0"

View File

@ -3,7 +3,7 @@ description: چشم همیشه باز مدیران
# The following line prevents the package from being accidentally published to # The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages. # pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev publish_to: "none" # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application. # The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43 # A version number is three numbers separated by dots, like 1.2.43
@ -18,7 +18,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 2.1.1+17 version: 2.1.1+17
environment: environment:
sdk: ">=2.12.0 <3.0.0" sdk: ">=2.17.0 <3.0.0"
# Dependencies specify other packages that your package needs in order to work. # Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions # To automatically upgrade your package dependencies to the latest versions
@ -32,7 +32,6 @@ dependencies:
flutter_localizations: flutter_localizations:
sdk: flutter sdk: flutter
# The following adds the Cupertino Icons font to your application. # The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons. # Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2 cupertino_icons: ^1.0.2
@ -68,7 +67,6 @@ dependencies:
assets_audio_player: ^3.0.4+1 assets_audio_player: ^3.0.4+1
fl_chart: ^0.50.1 fl_chart: ^0.50.1
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
sdk: flutter sdk: flutter
@ -85,7 +83,6 @@ dev_dependencies:
# The following section is specific to Flutter. # The following section is specific to Flutter.
flutter: flutter:
# The following line ensures that the Material Icons font is # The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in # included with your application, so that you can use the icons in
# the material Icons class. # the material Icons class.
@ -101,8 +98,6 @@ flutter:
- lib/assets/animations/ - lib/assets/animations/
- lib/assets/loading.gif - lib/assets/loading.gif
# An image asset can refer to one or more resolution-specific "variants", see # An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware. # https://flutter.dev/assets-and-images/#resolution-aware.