-
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 listc: regressionIt was better in the past than it is nowIt was better in the past than it is nowf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 3.19Found to occur in 3.19Found to occur in 3.19found in release: 3.20Found to occur in 3.20Found to occur in 3.20frameworkflutter/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 onteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Description
Steps to reproduce
Create the following main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
static const bool explicitTransparent = false;
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: Scaffold(
body: Padding(
padding: EdgeInsets.all(8.0),
child: Center(
child: TextField(
decoration: InputDecoration(
filled: true,
fillColor: Color(0xFFBBBBBB),
enabledBorder: UnderlineInputBorder(
borderSide: explicitTransparent //
? BorderSide(style: BorderStyle.none, color: Colors.transparent)
: BorderSide(style: BorderStyle.none),
borderRadius: BorderRadius.all(Radius.circular(4)),
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ also note here we have border radius on the bottom, vs the top only default
),
),
),
),
),
),
);
}
}Run once with explicitTransparent = false and once with explicitTransparent = true.
Compare between 3.16 and 3.19
Expected results
In 3.19 BorderSide.none results in no border being shown, like in 3.16.
Actual results
In 3.19 BorderSide.none requires explicit transparent color to results in no border being shown.
Probably changed here: #124153
Code sample
See above
Screenshots or Video
Screenshots / Video demonstration
3.19withexplicitTransparent = false
3.19withexplicitTransparent = true
3.16withexplicitTransparent = false/explicitTransparent = true
Logs
No response
Flutter Doctor output
Doctor 3.19
[✓] Flutter (Channel stable, 3.19.0, on macOS 14.1 23B74 darwin-arm64, locale en-DE)
• Flutter version 3.19.0 on channel stable at /Users/gian/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision bae5e49bc2 (6 days ago), 2024-02-13 17:46:18 -0800
• Engine revision 04817c99c9
• Dart version 3.3.0
• DevTools version 2.31.1Doctor 3.16
[✓] Flutter (Channel stable, 3.16.7, on macOS 14.1 23B74 darwin-arm64, locale en-DE)
• Flutter version 3.16.7 on channel stable at /Users/gian/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ef1af02aea (6 weeks ago), 2024-01-11 15:19:26 -0600
• Engine revision 4a585b7929
• Dart version 3.2.4
• DevTools version 2.28.5technolion and OperKH
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: regressionIt was better in the past than it is nowIt was better in the past than it is nowf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 3.19Found to occur in 3.19Found to occur in 3.19found in release: 3.20Found to occur in 3.20Found to occur in 3.20frameworkflutter/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 onteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team