DraggableScrollableSheet in Flutter

DraggableScrollableSheet in Flutter

DraggableScrollableSheet in Flutter. Let’s start creating a stylish as well as an attractive draggable and scrollable widget in our app. DraggableScrollableSheet widget is a draggable and scrollable widget that responds to drag gestures by resizing the scrollable until a limit is reached, and then scrolling. It looks like a sheet that is built in a bottom but actually, it can be dragged and scrolled up to a certain limit. This widget can be dragged along the vertical axis providing a scrolling effect.

Let’s start creating a stylish as well as an attractive draggable and scrollable widget in our app

Introduction :

DraggableScrollableSheet widget is a draggable and scrollable widget that responds to drag gestures by resizing the scrollable until a limit is reached, and then scrolling. It looks like a sheet that is built in a bottom but actually, it can be dragged and scrolled up to a certain limit. This widget can be dragged along the _vertical axis _providing a scrolling effect.

Demo Module :

Image for post

Table of content :

  • DraggableScrollableSheet class
  • Implementing Sample UI
  • Understanding its properties through stylish UI

DraggableScrollableSheet class :

DraggableScrollableSheet class is basically a widget that looks like a sheet that drags down from the bottom and expands in a vertical direction. This widget expands up to a certain fraction _of a screen in an app as per limited height as provided and then enable _scrolling effect inside it expanded height. It can be said that it is a bottom appbar that expands its size and contains a list of data inside it which scrolls.

Sample :

Image for post

This is how this sample UI looks like as shown below…..

Image for post

Now let's create one stylish UI and try to explore more of its properties :

Let’s Start:

Image for post

How to implement-:

Image for post

Here above the code, you can see that we have used the widget called DraggableScrollableSheet and applied some of its properties to implement UI as shown above.

As you can see above that container is used inside DraggableScrollableSheet which drags by resizing itself until a limit is reached and thus creating ListView.builder inside it which contains a scrollable list inside the container.

flutter dart mobile-apps programming developer

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

How long does it take to develop/build an app?

This article covers A-Z about the mobile and web app development process and answers your question on how long does it take to develop/build an app.

Google's Flutter 1.20 stable announced with new features - Navoki

Google has announced new flutter 1.20 stable with many improvements, and features, enabling flutter for Desktop and Web

Hire Mobile App Developers in USA

AppClues Infotech is the best mobile app development company in New York that offers custom mobile app development & design services for Android and iOS.

Top Mobile App Developers & Leading App Development Companies in UK

Profusely examined top Mobile App Development companies in UK with ratings & reviews to help find the best Mobile App Development solution providers.

Top Mobile App Development Company in Texas

AppClues Infotech is the best mobile app development company in New York that offers custom mobile app development & design services for Android and iOS.