- Notifications
You must be signed in to change notification settings - Fork29.7k
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
Description
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.
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
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
