Skip to content

DropdownButton with long list scroll to end of list #15346

@alescdb

Description

@alescdb

Steps to Reproduce

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text(widget.title),
      ),
      body: new DropdownButton<int>(
        items: new List<DropdownMenuItem<int>>.generate(
          50,
          (int index) => new DropdownMenuItem<int>(
                value: index,
                child: new Text(index.toString()),
              ),
        ),
        onChanged: (int value) {},
      ),
    );
  }

Flutter Doctor

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.1.5, on Microsoft Windows [version 10.0.16299.248], locale fr-FR)
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[√] Android Studio (version 3.0)
[√] IntelliJ IDEA Ultimate Edition (version 2017.3)
[√] VS Code (version 1.20.1)
[√] Connected devices (1 available)

• No issues found!

output

Metadata

Metadata

Assignees

Labels

a: qualityA truly polished experiencecustomer: mulligan (g3)f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions