lab6
This commit is contained in:
parent
f6fe3d03e3
commit
66ec21d64a
@ -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';
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user