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.
This commit is contained in:
MohammadTaha Basiri 2024-04-15 00:44:43 +03:30
parent f780a306bf
commit 4c46d7fabb
2 changed files with 4 additions and 2 deletions

View File

@ -134,7 +134,9 @@ class _NewStockState extends State<NewStock> {
emptyState: EmptyResult( emptyState: EmptyResult(
onNewSearch: () => _focusNode.requestFocus(), onNewSearch: () => _focusNode.requestFocus(),
), ),
enableEmptyState: context.watch<NewStockState>().contents.isEmpty, enableEmptyState: context.read<NewStockState>().contents.isEmpty &&
context.read<NewStockState>().totalContent_type3.isEmpty &&
context.read<NewStockState>().totalContent_type4.isEmpty,
topPadding: 16, topPadding: 16,
placeholder: Column( placeholder: Column(
children: [ children: [

View File

@ -147,7 +147,7 @@ class _EditProfileState extends State<EditProfile> {
Positioned( Positioned(
left: 20, left: 20,
right: 20, right: 20,
bottom: 20, bottom: MediaQuery.of(context).viewInsets.bottom + 20,
child: DidvanButton( child: DidvanButton(
key: UniqueKey(), key: UniqueKey(),
title: 'ذخیره تغییرات', title: 'ذخیره تغییرات',