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(
|
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: [
|
||||||
|
|
|
||||||
|
|
@ -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: 'ذخیره تغییرات',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue