Skip to content

Commit

Permalink
reformat the code
Browse files Browse the repository at this point in the history
  • Loading branch information
YassinNouh21 committed May 3, 2024
1 parent 6b6e914 commit 4a64fa9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/src/pages/times/normal_home/landscape_normal_home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class _LandscapeNormalHomeState extends riverpod.ConsumerState<LandscapeNormalHo
@override
Widget build(BuildContext context) {
ref.listen(appUpdateProvider, (previous, next) {
if (next.hasValue && !next.isReloading && next.value!.appUpdateStatus == AppUpdateStatus.updateAvailable){
if (next.hasValue && !next.isReloading && next.value!.appUpdateStatus == AppUpdateStatus.updateAvailable) {
log('update available ${next.value} || ${next.isReloading} || ${next.isLoading} || ${next.hasValue}');
showUpdateAlert(
context: context,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/pages/times/normal_home/portrait_normal_home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class _PortraitNormalHomeState extends riverpod.ConsumerState<PortraitNormalHome
@override
Widget build(BuildContext context) {
ref.listen(appUpdateProvider, (previous, next) {
if (next.hasValue && !next.isReloading && next.value!.appUpdateStatus == AppUpdateStatus.updateAvailable){
if (next.hasValue && !next.isReloading && next.value!.appUpdateStatus == AppUpdateStatus.updateAvailable) {
showUpdateAlert(
context: context,
duration: Duration(seconds: 30),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class _LandScapeTurkishHomeState extends riverpod.ConsumerState<LandScapeTurkish
@override
Widget build(BuildContext context) {
ref.listen(appUpdateProvider, (previous, next) {
if (next.hasValue && !next.isReloading && next.value!.appUpdateStatus == AppUpdateStatus.updateAvailable){
if (next.hasValue && !next.isReloading && next.value!.appUpdateStatus == AppUpdateStatus.updateAvailable) {
showUpdateAlert(
context: context,
onDismissPressed: () => ref.read(appUpdateProvider.notifier).dismissUpdate(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class _PortraitTurkishHomeState extends riverpod.ConsumerState<PortraitTurkishHo
@override
Widget build(BuildContext context) {
ref.listen(appUpdateProvider, (previous, next) {
if (next.hasValue && !next.isReloading && next.value!.appUpdateStatus == AppUpdateStatus.updateAvailable){
if (next.hasValue && !next.isReloading && next.value!.appUpdateStatus == AppUpdateStatus.updateAvailable) {
showUpdateAlert(
context: context,
duration: Duration(seconds: 30),
Expand Down

0 comments on commit 4a64fa9

Please sign in to comment.