Created
September 9, 2021 13:03
-
-
Save nestorsgarzonc/b8e00e0216f3aeda546387a591b4bdc8 to your computer and use it in GitHub Desktop.
Flutter 2.5.0 scroll bug example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| const MyApp({Key? key}) : super(key: key); | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Material App', | |
| initialRoute: '/', | |
| routes: { | |
| '/': (ctx) => Body(), | |
| }, | |
| ); | |
| } | |
| } | |
| class Body extends StatelessWidget { | |
| const Body({Key? key}) : super(key: key); | |
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( | |
| body: ListView.separated( | |
| itemCount: 100, | |
| separatorBuilder: (context, index) => const Divider(), | |
| itemBuilder: (context, index) => Container( | |
| color: Colors.orange, | |
| width: 100, | |
| height: 100, | |
| ), | |
| ), | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment