Welcome to the FlutterWidgetLibrary, a resource for exploring and mastering Flutter widgets with code examples and explanations. This repository serves as a curated collection of Flutter widgets, each accompanied by detailed code examples and explanations. Whether you're a Flutter enthusiast looking to deepen your widget knowledge or a developer seeking practical solutions for your projects, you'll find a wealth of valuable insights and code samples here.
- Widgets Showcase: Browse through collection of Flutter widgets, each showcased with real-world use cases and code samples.
- Code Examples: Access easy-to-follow code examples that demonstrate how to use each widget effectively.
- Widget Explanations: Gain a deeper understanding of Flutter widgets through comprehensive explanations and usage guidelines.
- Contributions: I welcome contributions from the community! Share your own widget examples, improvements, or bug fixes.
-
ListView
See on flutter doc
a. ListView()
Syntax:ListView( children: <Widget>[ // List items go here ], )
for more example: check ListView
b. ListView.builder()
Syntax:ListView.builder( itemCount: <itemCount>, itemBuilder: (BuildContext context, int index) { // Return a widget based on the index }, )
for more example: check ListView.builder
c. ListView.separated()
Syntax:ListView.separated( itemCount: <itemCount>, separatorBuilder: (BuildContext context, int index) { // Return the separator widget }, itemBuilder: (BuildContext context, int index) { // Return a widget based on the index }, )
for more example: check ListView.builder
- Explicit Animation
- Tween Animation
- _Animation with Controller
- Drawer
- endDrawer
- BottomNavigationBar
- NavigationBar
- NavigationRail
Contributions to this repository are highly encouraged. Whether you want to add new widgets, improve existing code samples, or fix issues, I appreciate your help.
For questions, feedback, or inquiries, please contact smachewgedefaw@gmail.com.
Happy coding!