Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ScrollBar renders incorrectly #81027

Closed
Closed
Labels
a: text inputEntering text in a text field or keyboard related problemsf: material designflutter/packages/flutter/material repository.f: scrollingViewports, list views, slivers, etc.found in release: 2.0Found to occur in 2.0found in release: 2.2Found to occur in 2.2frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: duplicateIssue is closed as a duplicate of an existing issue
@ristiisa

Description

@ristiisa

When enough text is added to the TextField the height will grow. When text is removed so that the TextField height is shrinking the ScrollBar renders incorrectly.

image

textareascrollbar.mp4
code sample
import'package:flutter/material.dart';main()=>runApp(App());classAppextendsStatelessWidget {@overrideWidgetbuild(BuildContext context)=>MaterialApp(    home:Scaffold(      body:Column(mainAxisAlignment:MainAxisAlignment.center, children: [ConstrainedBox(constraints:BoxConstraints(maxHeight:200), child:Row(children: [Expanded(child:Scrollbar(child:TextField(            autocorrect:false,            enableSuggestions:false,            keyboardType:TextInputType.multiline,            textInputAction:TextInputAction.newline,            maxLines:null,            decoration:InputDecoration(              hintText:"Message",              border:OutlineInputBorder(borderSide:BorderSide(color:Colors.black))            ),          ))),SizedBox(width:5),Container(height:40, width:40, child:Icon(Icons.send)),        ]))      ]    ))  );}
flutter doctor

[✓] Flutter (Channel stable, 2.0.5, on macOS 11.2.1 20D74 darwin-x64, locale en-EE)
• Flutter version 2.0.5 at /Users/silver/flutter
• Framework revisionadc6878 (7 days ago), 2021-04-16 09:40:20 -0700
• Engine revisionb09f014
• Dart version 2.12.3

[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: text inputEntering text in a text field or keyboard related problemsf: material designflutter/packages/flutter/material repository.f: scrollingViewports, list views, slivers, etc.found in release: 2.0Found to occur in 2.0found in release: 2.2Found to occur in 2.2frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: duplicateIssue is closed as a duplicate of an existing issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp