Skip to content

Commit

Permalink
fix auto scroll issue
Browse files Browse the repository at this point in the history
  • Loading branch information
RittikSoni committed Aug 8, 2024
1 parent c1bf521 commit f908ca0
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lib/screens/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class _AppState extends State<App> {
children: <Widget>[
LiquidSwipe.builder(
itemCount: questionsData.length,
disableUserGesture: true,
itemBuilder: (context, index) {
final currentQuestion = questionsData[index];
return AnimatedMeshGradient(
Expand Down Expand Up @@ -178,14 +179,5 @@ class _AppState extends State<App> {
setState(() {
page = lpage;
});
if (liquidController.currentPage + 1 > questionsData.length - 1) {
// LAST PAGE REACHED
KRoute.push(context: context, page: const GenerateAI());
} else {
liquidController.animateToPage(
page: liquidController.currentPage + 1,
duration: pageAnimationDuration,
);
}
}
}

0 comments on commit f908ca0

Please sign in to comment.