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:
parent
f780a306bf
commit
4c46d7fabb
|
|
@ -134,7 +134,9 @@ class _NewStockState extends State<NewStock> {
|
|||
emptyState: EmptyResult(
|
||||
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,
|
||||
placeholder: Column(
|
||||
children: [
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ class _EditProfileState extends State<EditProfile> {
|
|||
Positioned(
|
||||
left: 20,
|
||||
right: 20,
|
||||
bottom: 20,
|
||||
bottom: MediaQuery.of(context).viewInsets.bottom + 20,
|
||||
child: DidvanButton(
|
||||
key: UniqueKey(),
|
||||
title: 'ذخیره تغییرات',
|
||||
|
|
|
|||
Loading…
Reference in New Issue