important fix

This commit is contained in:
dyakonovr 2024-09-25 14:54:30 +04:00
parent fe11a5b678
commit 59a912b8d8

View File

@ -93,7 +93,8 @@ class _MyHomePageState extends State<MyHomePage> {
body: Column( body: Column(
children: [ children: [
Padding( Padding(
padding: const EdgeInsets.only(right: 30, left: 30, top: 20), padding:
const EdgeInsets.only(right: 30, left: 30, top: 20, bottom: 20),
child: CupertinoSearchTextField( child: CupertinoSearchTextField(
controller: _searchController, controller: _searchController,
onChanged: _onSearchInputChange, onChanged: _onSearchInputChange,
@ -118,7 +119,8 @@ class _MyHomePageState extends State<MyHomePage> {
onRefresh: _onRefresh, onRefresh: _onRefresh,
child: ListView.separated( child: ListView.separated(
controller: _scrollController, controller: _scrollController,
padding: const EdgeInsets.all(30), padding: const EdgeInsets.symmetric(
vertical: 20, horizontal: 30),
separatorBuilder: (context, index) => separatorBuilder: (context, index) =>
const SizedBox(height: 20), const SizedBox(height: 20),
itemCount: state.data?.data?.length ?? 0, itemCount: state.data?.data?.length ?? 0,