testWidgets('min intrinsic height for TextField with prefix icon',(WidgetTestertester)async{
// Regression test for: https://github.com/flutter/flutter/issues/87403
awaittester.pumpWidget(MaterialApp(
home:Material(
child:Center(
child:SizedBox(
width:100.0,
child:IntrinsicHeight(
child:Column(
children:<Widget>[
TextField(
controller:TextEditingController(text:'input'),
maxLines:null,
decoration:constInputDecoration(
prefixIcon:Icon(Icons.search),
),
),
],
),
),
),
),
),
));
expect(tester.takeException(),isNull);
});
testWidgets('min intrinsic height for TextField with suffix icon',(WidgetTestertester)async{
// Regression test for: https://github.com/flutter/flutter/issues/87403
awaittester.pumpWidget(MaterialApp(
home:Material(
child:Center(
child:SizedBox(
width:100.0,
child:IntrinsicHeight(
child:Column(
children:<Widget>[
TextField(
controller:TextEditingController(text:'input'),
maxLines:null,
decoration:constInputDecoration(
suffixIcon:Icon(Icons.search),
),
),
],
),
),
),
),
),
));
expect(tester.takeException(),isNull);
});
testWidgets('min intrinsic height for TextField with prefix',(WidgetTestertester)async{
// Regression test for: https://github.com/flutter/flutter/issues/87403
awaittester.pumpWidget(MaterialApp(
home:Material(
child:Center(
child:SizedBox(
width:100.0,
child:IntrinsicHeight(
child:Column(
children:<Widget>[
TextField(
controller:TextEditingController(text:'input'),
maxLines:null,
decoration:constInputDecoration(
prefix:Text('prefix'),
),
),
],
),
),
),
),
),
));
expect(tester.takeException(),isNull);
});
testWidgets('min intrinsic height for TextField with suffix',(WidgetTestertester)async{
// Regression test for: https://github.com/flutter/flutter/issues/87403
awaittester.pumpWidget(MaterialApp(
home:Material(
child:Center(
child:SizedBox(
width:100.0,
child:IntrinsicHeight(
child:Column(
children:<Widget>[
TextField(
controller:TextEditingController(text:'input'),
maxLines:null,
decoration:constInputDecoration(
suffix:Text('suffix'),
),
),
],
),
),
),
),
),
));
expect(tester.takeException(),isNull);
});
testWidgets('min intrinsic height for TextField with icon',(WidgetTestertester)async{
// Regression test for: https://github.com/flutter/flutter/issues/87403
awaittester.pumpWidget(MaterialApp(
home:Material(
child:Center(
child:SizedBox(
width:100.0,
child:IntrinsicHeight(
child:Column(
children:<Widget>[
TextField(
controller:TextEditingController(text:'input'),
maxLines:null,
decoration:constInputDecoration(
icon:Icon(Icons.search),
),
),
],
),
),
),
),
),
));
expect(tester.takeException(),isNull);
});
testWidgets('InputDecorationTheme floatingLabelStyle overrides label widget styles when the widget is a text widget (focused)',(WidgetTestertester)async{
testWidgets('InputDecorationTheme floatingLabelStyle overrides label widget styles when the widget is a text widget (focused)',(WidgetTestertester)async{