GithubHelp home page GithubHelp logo

032abhishekchoksi / listview-flutter Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 270 KB

List View (ListView, ListView Builder, ListView Separator, ListTile widget)

Java 0.29% Swift 3.26% Objective-C 0.07% Dart 11.61% CMake 35.45% C++ 43.03% C 2.69% HTML 3.60%
032abhishekchoksi flutter-3-10-5 listview listview-builder listtile-widget listview-separator

listview-flutter's Introduction

ListView in Flutter

In Flutter, ListView is a scrollable list of widgets arranged linearly. It displays its children one after another in the scroll direction i.e, vertical or horizontal.

There are different types of ListViews: ListView, ListView.builder and ListView.separated

1. ListView() This is the default constructor of the ListView class. A ListView simply takes a list of widgets and makes it scrollable. Usually, this is used with a few children as the List will also construct invisible elements in the list, so numerous widgets may render this inefficiently.

2. ListView.builder() The builder() constructor constructs a repeating list of widgets. The constructor takes two main parameters:
- An itemCount for the number of repetitions for the widget to be constructed (not compulsory). - An itemBuilder for constructing the widget which will be generated ‘itemCount‘ times (compulsory). If the itemCount is not specified, infinite widgets will be constructed by default.

3. ListView.separated () The ListView.separated() constructor is used to generate a list of widgets, but in addition, a separator widget can also be generated to separate the widgets. In short, these are two intertwined list of widgets: the main list and the separator list. Unlike the builder() constructor, the itemCount parameter is compulsory here.

4. ListTile Widget ListTile widget is used to populate a ListView in Flutter. It contains title as well as leading or trailing icons.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

listview-flutter's People

Contributors

032abhishekchoksi avatar

Watchers

 avatar

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.