-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 3.22Found to occur in 3.22Found to occur in 3.22frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-text-inputOwned by Text Input teamOwned by Text Input team
Description
Steps to reproduce
- Run the code sample on mobile.
- Observe that the active indicator overflows the container height at the bottom (which is 56dp on mobile).
Expected results
Active indicator does not overflow container bounds.
Similarly to an outlined text field border which is painted correctly:
Actual results
The active indicator overflows the container at the bottom.
Code sample
Code sample
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: SafeArea(
child: Scaffold(
body: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
children: [
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
height: 56,
width: 30,
color: Colors.amber[700],
child: const Center(
child: Text('56dp', style: TextStyle(fontSize: 10, fontWeight: FontWeight.bold)),
),
),
const SizedBox(
width: 140,
child: TextField(
decoration: InputDecoration(
labelText: 'Label text',
filled: true,
// border: OutlineInputBorder(),
),
),
),
Container(
height: 56,
width: 30,
color: Colors.amber[700],
child: const Center(
child: Text('56dp', style: TextStyle(fontSize: 10, fontWeight: FontWeight.bold)),
),
),
],
),
const SizedBox(height: 5),
const Text(
'Active indicator painted\noutside container bounds.',
textAlign: TextAlign.center,
style: TextStyle(fontSize: 12),
),
],
),
),
),
),
);
}
}Screenshots or Video
No response
Logs
No response
Flutter Doctor output
Doctor output
[!] Flutter (Channel master, 3.22.0-6.0.pre.23, on macOS 14.2.1 23C71
darwin-arm64, locale fr-FR)
! Warning: `flutter` on your path resolves to
/Users/bruno/Nevercode/flutter/bin/flutter, which is not inside your
current Flutter SDK checkout at /Users/Bruno/Nevercode/flutter. Consider
adding /Users/Bruno/Nevercode/flutter/bin to the front of your path.
! Warning: `dart` on your path resolves to
/opt/homebrew/Cellar/dart/2.18.4/libexec/bin/dart, which is not inside
your current Flutter SDK checkout at /Users/Bruno/Nevercode/flutter.
Consider adding /Users/Bruno/Nevercode/flutter/bin to the front of your
path.
! Upstream repository https://github.com/NevercodeHQ/flutter is not a
standard remote.
Set environment variable "FLUTTER_GIT_URL" to
https://github.com/NevercodeHQ/flutter to dismiss this error.
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
! Some Android licenses not accepted. To resolve this, run: flutter doctor
--android-licenses
[!] Xcode - develop for iOS and macOS (Xcode 15.1)
! CocoaPods 1.11.3 out of date (1.13.0 is recommended).
CocoaPods is used to retrieve the iOS and macOS platform side's plugin
code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To upgrade see
https://guides.cocoapods.org/using/getting-started.html#updating-cocoapods
for instructions.
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] VS Code (version 1.88.0)
[✓] Connected device (4 available)
[✓] Network resources
! Doctor found issues in 3 categories.Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 3.22Found to occur in 3.22Found to occur in 3.22frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-text-inputOwned by Text Input teamOwned by Text Input team
Type
Projects
Status
Done (PR merged)

