A horizontal list widget to use in mainly for web or desktop application

0 0

horizontal_list

A horizontal list widget to use in mainly for web or desktop application.

Using the library

Add the repo to your Flutter pubspec.yaml file.

dependencies:
  horizontal_list: <<version>>

Then run…

flutter packages get

Example

HorizontalListView(
    list: [Text('Text 1'), Text('Text 2')], //List of widget
    iconNext: Icon(Icons.arrow_forward_ios), // Icon for button next
    iconPrevious: Icon(Icons.arrow_back_ios), // Icon for button previous
    curveAnimation: Curves.bounceIn, //Curve for animation
    durationAnimation: Duration(milliseconds: 300), //Duration of animation
    onNextPressed: () { //On button next pressed
      print('On next pressed');
    },
    onPreviousPressed: () { //On button next pressed
      print('On previous pressed');
    },
),

GitHub

View Github

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Deja una respuesta

Entrada anterior Flutter Online dataCollection App for AI
Entrada siguiente Budipest – A community-based toilet finder app that seeks to alleviate the problem of public toilets in Hungary