ListView | GridView Exemple
1- Créez un nouveau dossier
3- Naviguer vers l'emplacement où vous souhaitez créer votre nouveau dossier.
5- Exécutez la commande flutter pub get pour installer les dépendances du projet Flutter.
Home |
My ListView Page |
My GridView Page |
![](https://github.com/oussemanaffetyy/FlutterScreenshot/raw/main/screenshot/listviewgridview.png) |
![](https://github.com/oussemanaffetyy/FlutterScreenshot/raw/main/screenshot/listview.png) |
![](https://github.com/oussemanaffetyy/FlutterScreenshot/raw/main/screenshot/gridview.png) |
ListView() |
ListView.builder() |
ListView.custom() |
ListView.separated() |
![](https://github.com/oussemanaffetyy/FlutterScreenshot/raw/main/screenshot/listviewsimple.png) |
![](https://github.com/oussemanaffetyy/FlutterScreenshot/raw/main/screenshot/listeviewbuilder.png) |
![](https://github.com/oussemanaffetyy/FlutterScreenshot/raw/main/screenshot/listviewcustom.png) |
![](https://github.com/oussemanaffetyy/FlutterScreenshot/raw/main/screenshot/listviexseparated.png) |
GridView() |
Grid.builder() |
Grid.count() |
Grid.extent() |
![](https://github.com/oussemanaffetyy/FlutterScreenshot/raw/main/screenshot/gridviewsimple.png) |
![](https://github.com/oussemanaffetyy/FlutterScreenshot/raw/main/screenshot/gridviewbuilder.png) |
![](https://github.com/oussemanaffetyy/FlutterScreenshot/raw/main/screenshot/gridviewcount.png) |
![](https://github.com/oussemanaffetyy/FlutterScreenshot/raw/main/screenshot/gridviewextent.png) |
Add the package as a dependency in your pubspec.yaml file.
dependencies:
flutter_launcher_icons: "^0.13.1"
easy_splash_screen: ^1.0.4
Import the package in your code file.
import 'package:easy_splash_screen/easy_splash_screen.dart';