From 4c46d7fabbee08782db5d65d7cb9eaef1249b856 Mon Sep 17 00:00:00 2001 From: MohammadTaha Basiri Date: Mon, 15 Apr 2024 00:44:43 +0330 Subject: [PATCH] Update NewStock and EditProfile classes: - In NewStock, update the enableEmptyState property to check for additional empty states. - In EditProfile, update the bottom property of Positioned widget to consider the keyboard height. --- lib/views/home/new_statistic/stock/new_stock.dart | 4 +++- lib/views/profile/edit_profile/edit_profile.dart | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/views/home/new_statistic/stock/new_stock.dart b/lib/views/home/new_statistic/stock/new_stock.dart index 4cc0b50..91f5761 100644 --- a/lib/views/home/new_statistic/stock/new_stock.dart +++ b/lib/views/home/new_statistic/stock/new_stock.dart @@ -134,7 +134,9 @@ class _NewStockState extends State { emptyState: EmptyResult( onNewSearch: () => _focusNode.requestFocus(), ), - enableEmptyState: context.watch().contents.isEmpty, + enableEmptyState: context.read().contents.isEmpty && + context.read().totalContent_type3.isEmpty && + context.read().totalContent_type4.isEmpty, topPadding: 16, placeholder: Column( children: [ diff --git a/lib/views/profile/edit_profile/edit_profile.dart b/lib/views/profile/edit_profile/edit_profile.dart index 6117aac..65ae45d 100644 --- a/lib/views/profile/edit_profile/edit_profile.dart +++ b/lib/views/profile/edit_profile/edit_profile.dart @@ -147,7 +147,7 @@ class _EditProfileState extends State { Positioned( left: 20, right: 20, - bottom: 20, + bottom: MediaQuery.of(context).viewInsets.bottom + 20, child: DidvanButton( key: UniqueKey(), title: 'ذخیره تغییرات',