Git Product home page Git Product logo

Comments (3)

jamesblasco avatar jamesblasco commented on May 29, 2024 2

I will try it! Thanks for sharing the code.

from modal_bottom_sheet.

jamesblasco avatar jamesblasco commented on May 29, 2024

Mmmmh most of the logic is based on the original flutter modal bottom sheet, so you should expect a very similar performance. First I would try to test the modal in release mode, also try if the textfield autofocus could be the one making lag.

from modal_bottom_sheet.

rodrigonso avatar rodrigonso commented on May 29, 2024

Right, that makes sense. I have created a new test case and wanted to share what I found -- it looks like it won't work well with many text fields.

The gifs below show the tests I made with a different number of text fields.

Also, the code I used inside the invoking function is as follows:

showCupertinoModalBottomSheet( context: context, builder: (context, scrollController) => Scaffold( body: Column( children: [ TextField( onTap: () => null, decoration: InputDecoration(hintText: "Username"), ), ], ), ), )

ezgif com-video-to-gif (4)
ezgif com-video-to-gif (3)
ezgif com-video-to-gif (2)
ezgif com-video-to-gif (1)

Disabling the autofocus also decreases the lag.

Cheers!

from modal_bottom_sheet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.