nylo-core / nylo

Nylo is the fastest way to build your next Flutter mobile app. Streamline your projects with Nylo's opinionated approach to building Flutter apps. Develop your next idea ⚡️
https://nylo.dev
MIT License
597 stars 61 forks source link

Back gesture not working in nylo #110

Closed jitendravn closed 8 months ago

jitendravn commented 8 months ago

Hello Sir @agordn52 , when I create a project in Flutter itself. the back gesture is working fine.

But in Nylo I'm not able to back by using gesture(finger horizontal swipe)

agordn52 commented 8 months ago

Hi @jitendravn,

If you want to implement gestures to swipe to the previous page in your project, update the Theme.

Here's an example using pageTransitionsTheme.

File: resources/themes/light_theme.dart

...
return ThemeData(
    useMaterial3: true,
    pageTransitionsTheme: PageTransitionsTheme(
        builders: {
          TargetPlatform.android: CupertinoPageTransitionsBuilder(),
          TargetPlatform.iOS: CupertinoPageTransitionsBuilder(),
        }
    ),

This isn't an issue with the framework, marking this issue closed 👍

jitendravn commented 8 months ago

@agordn52 Thank you, sir