This commit is contained in:
sofia7ya 2024-12-18 15:39:48 +04:00
parent f6fe3d03e3
commit 66ec21d64a
2 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class PotterRepository extends ApiInterface {
OnErrorCallback? onError,
String? q,
int page = 1,
int pageSize = 25,
int pageSize = 10,
}) async {
try {
const String url = '$_baseUrl/v1/potions';

View File

@ -95,6 +95,7 @@ class _BodyState extends State<_Body> {
child: RefreshIndicator(
onRefresh: _onRefresh,
child: ListView.builder(
physics: BouncingScrollPhysics(),
controller: scrollController,
padding: EdgeInsets.zero,
itemCount: state.data?.data?.length ?? 0,