bug fixes + package upgrades

This commit is contained in:
MohammadTaha Basiri 2022-04-22 15:26:03 +04:30
parent 1bd33a834d
commit 77dd06264d
7 changed files with 53 additions and 32 deletions

View File

@ -47,6 +47,13 @@ class DateTimeUtils {
initialDate: initialJalali, initialDate: initialJalali,
firstDate: firstDate, firstDate: firstDate,
lastDate: lastDate, lastDate: lastDate,
builder: (context, child) => Theme(
data: Theme.of(context).copyWith(
textTheme: Theme.of(context)
.textTheme
.copyWith(headline4: Theme.of(context).textTheme.headline3)),
child: child!,
),
); );
return result?.toDateTime().toString(); return result?.toDateTime().toString();

View File

@ -20,6 +20,9 @@ class AudioWidget extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return StreamBuilder<bool>(
stream: MediaService.audioPlayer.isPlaying,
builder: (context, snapshot) {
return Row( return Row(
children: [ children: [
Expanded( Expanded(
@ -27,18 +30,15 @@ class AudioWidget extends StatelessWidget {
tag: 'message-$id', tag: 'message-$id',
), ),
), ),
StreamBuilder<bool>( _AudioControllerButton(
stream: MediaService.audioPlayer.isPlaying,
builder: (context, snapshot) {
return _AudioControllerButton(
audioFile: audioFile, audioFile: audioFile,
audioUrl: audioUrl, audioUrl: audioUrl,
id: id, id: id,
);
},
), ),
], ],
); );
},
);
} }
} }

View File

@ -91,7 +91,7 @@ class _NewsState extends State<News> {
void _onChanged(String value) { void _onChanged(String value) {
final state = context.read<NewsState>(); final state = context.read<NewsState>();
if (value.length < 4 && value.isNotEmpty || state.lastSearch == value) { if (value.length < 3 && value.isNotEmpty || state.lastSearch == value) {
return; return;
} }
_timer?.cancel(); _timer?.cancel();

View File

@ -203,7 +203,7 @@ class _RadarState extends State<Radar> {
void _onChanged(String value) { void _onChanged(String value) {
final state = context.read<RadarState>(); final state = context.read<RadarState>();
if (value.length < 4 && value.isNotEmpty || state.lastSearch == value) { if (value.length < 3 && value.isNotEmpty || state.lastSearch == value) {
return; return;
} }
_timer?.cancel(); _timer?.cancel();

View File

@ -144,7 +144,7 @@ class _BookmarksState extends State<Bookmarks> {
void _onChanged(String value) { void _onChanged(String value) {
final state = context.read<BookmarksState>(); final state = context.read<BookmarksState>();
if (value.length < 4 && value.isNotEmpty || state.lastSearch == value) { if (value.length < 3 && value.isNotEmpty || state.lastSearch == value) {
return; return;
} }
_timer?.cancel(); _timer?.cancel();

View File

@ -165,7 +165,7 @@ class _StudioState extends State<Studio> {
void _onChanged(String value) { void _onChanged(String value) {
final state = context.read<StudioState>(); final state = context.read<StudioState>();
if (value.length < 4 && value.isNotEmpty || state.lastSearch == value) { if (value.length < 3 && value.isNotEmpty || state.lastSearch == value) {
return; return;
} }
_timer?.cancel(); _timer?.cancel();

View File

@ -182,7 +182,7 @@ packages:
name: firebase_core name: firebase_core
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.14.0" version: "1.15.0"
firebase_core_platform_interface: firebase_core_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -196,28 +196,28 @@ packages:
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.1" version: "1.6.2"
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.12" version: "11.2.14"
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.2.2" version: "3.3.0"
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.10" version: "2.2.12"
fl_chart: fl_chart:
dependency: "direct main" dependency: "direct main"
description: description:
@ -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.4" version: "0.6.8"
flutter_cache_manager: flutter_cache_manager:
dependency: transitive dependency: transitive
description: description:
@ -250,7 +250,7 @@ packages:
name: flutter_html name: flutter_html
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.0-alpha.2" version: "3.0.0-alpha.3"
flutter_lints: flutter_lints:
dependency: "direct dev" dependency: "direct dev"
description: description:
@ -398,6 +398,13 @@ 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"
image_picker_android:
dependency: transitive
description:
name: image_picker_android
url: "https://pub.dartlang.org"
source: hosted
version: "0.8.4+11" version: "0.8.4+11"
image_picker_for_web: image_picker_for_web:
dependency: transitive dependency: transitive
@ -406,6 +413,13 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.6" version: "2.1.6"
image_picker_ios:
dependency: transitive
description:
name: image_picker_ios
url: "https://pub.dartlang.org"
source: hosted
version: "0.8.4+11"
image_picker_platform_interface: image_picker_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -615,7 +629,7 @@ packages:
name: pin_code_fields name: pin_code_fields
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "7.3.0" version: "7.4.0"
platform: platform:
dependency: transitive dependency: transitive
description: description:
@ -704,14 +718,14 @@ packages:
name: sqflite name: sqflite
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.2" version: "2.0.2+1"
sqflite_common: sqflite_common:
dependency: transitive dependency: transitive
description: description:
name: sqflite_common name: sqflite_common
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.2.1" version: "2.2.1+1"
stack_trace: stack_trace:
dependency: transitive dependency: transitive
description: description:
@ -893,14 +907,14 @@ packages:
name: webview_flutter name: webview_flutter
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.1" version: "3.0.2"
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.4" version: "2.8.5"
webview_flutter_platform_interface: webview_flutter_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -914,7 +928,7 @@ packages:
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.1" version: "2.7.2"
win32: win32:
dependency: transitive dependency: transitive
description: description: