From 8972d580e5e86acd9995cbae531a896830a9ec37 Mon Sep 17 00:00:00 2001 From: "J. A. Messias" Date: Mon, 18 Nov 2024 13:41:06 -0300 Subject: [PATCH 1/2] fix: fetch label --- .../pets_on_the_property_page/pets_history_screen.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/pages/pets_on_the_property_page/pets_history_screen.dart b/lib/pages/pets_on_the_property_page/pets_history_screen.dart index d2771a97..3e4efbba 100644 --- a/lib/pages/pets_on_the_property_page/pets_history_screen.dart +++ b/lib/pages/pets_on_the_property_page/pets_history_screen.dart @@ -39,7 +39,7 @@ class _PetsHistoryScreenState extends State with TickerProvid void initState() { super.initState(); model = widget.model ?? createModel(context, () => PetsPageModel(isInteractive: false)); - _petsFuture = _fetchVisits(); + _petsFuture = _fetch(); _scrollController = ScrollController() ..addListener(() { if (_scrollController.position.atEdge && _scrollController.position.pixels != 0) { @@ -89,7 +89,7 @@ class _PetsHistoryScreenState extends State with TickerProvid ); } - Future _fetchVisits() async { + Future _fetch() async { try { setState(() => _loading = true); @@ -134,7 +134,7 @@ class _PetsHistoryScreenState extends State with TickerProvid if (_hasData == true) { _pageNumber++; - _petsFuture = _fetchVisits(); + _petsFuture = _fetch(); } } @@ -316,7 +316,7 @@ class _PetsHistoryScreenState extends State with TickerProvid safeSetState(() { _pageNumber = 1; _petsWrap = []; - _petsFuture = _fetchVisits().then((value) => value!.jsonBody['pets'] ?? []); + _petsFuture = _fetch().then((value) => value!.jsonBody['pets'] ?? []); }); }).catchError((e, s) async { await DialogUtil.errorDefault(context); From 6167d4be2b4c7251c193be76e593cd310cf2aac9 Mon Sep 17 00:00:00 2001 From: Ivan Antunes Date: Thu, 21 Nov 2024 17:25:50 -0300 Subject: [PATCH 2/2] =?UTF-8?q?lan=C3=A7ado=20vers=C3=A3o=201.2.1+18?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 37258a93..2ee3a661 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: A new Flutter project. publish_to: "none" -version: 1.2.1+17 +version: 1.2.1+18 environment: sdk: ">=3.0.0 <4.0.0"