-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
a: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)a: qualityA truly polished experienceA truly polished experiencef: date/time pickerDate or time picker widgetsDate or time picker widgetsf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
Steps to Reproduce
MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Flutter Demo Home Page'),
localizationsDelegates: [
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate
],
supportedLocales: [const Locale('zh', 'CN')],
);Scaffold(
appBar:AppBar(
title: new Text(widget.title),
),
body: Center(
child: RawMaterialButton(
onPressed: () {
showDatePicker(
context: context,
initialDate: DateTime.now(),
firstDate: DateTime.now().add(Duration(days: -10)),
lastDate: DateTime.now().add(Duration(days: 10)));
},
child: Text('点击我'),
)),
)Logs
I/flutter (22300): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
I/flutter (22300): The following message was thrown during layout:
I/flutter (22300): A RenderFlex overflowed by 5.0 pixels on the bottom.
I/flutter (22300):
I/flutter (22300): The overflowing RenderFlex has an orientation of Axis.vertical.
I/flutter (22300): The edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and
I/flutter (22300): black striped pattern. This is usually caused by the contents being too big for the RenderFlex.
I/flutter (22300): Consider applying a flex factor (e.g. using an Expanded widget) to force the children of the
I/flutter (22300): RenderFlex to fit within the available space instead of being sized to their natural size.
I/flutter (22300): This is considered an error condition because it indicates that there is content that cannot be
I/flutter (22300): seen. If the content is legitimately bigger than the available space, consider clipping it with a
I/flutter (22300): ClipRect widget before putting it in the flex, or using a scrollable container rather than a Flex,
I/flutter (22300): like a ListView.
I/flutter (22300): The specific RenderFlex in question is:
I/flutter (22300): RenderFlex#326f6 OVERFLOWING
I/flutter (22300): creator: Column ← Padding ← DecoratedBox ← ConstrainedBox ← Container ← _DatePickerHeader ← Column
I/flutter (22300): ← SizedBox ← LayoutBuilder ← OrientationBuilder ← DefaultTextStyle ← AnimatedDefaultTextStyle ← ⋯
I/flutter (22300): parentData: offset=Offset(16.0, 0.0) (can use size)
I/flutter (22300): constraints: BoxConstraints(w=298.0, h=100.0)
I/flutter (22300): size: Size(298.0, 100.0)
I/flutter (22300): direction: vertical
I/flutter (22300): mainAxisAlignment: center
I/flutter (22300): mainAxisSize: max
I/flutter (22300): crossAxisAlignment: start
I/flutter (22300): textDirection: ltr
I/flutter (22300): verticalDirection: down
I/flutter (22300): ◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤
I/flutter (22300): ════════════════════════════════════════════════════════════════════════════════════════════════════
Reloaded 1 of 412 libraries in 906ms.
Analyzing flutter_app...
No issues found! (ran in 1.9s)
[✓] Flutter (Channel master, v0.5.8-pre.204, on Mac OS X 10.13.6 17G65, locale zh-Hans-CN)
• Flutter version 0.5.8-pre.204 at /usr/local/flutter
• Framework revision ed533e9033 (26 hours ago), 2018-08-01 17:03:47 -0700
• Engine revision 91ff524e63
• Dart version 2.0.0-dev.69.4.flutter-08f59e5de3
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.1)
• Android SDK at /data/Android/android-sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.1
• ANDROID_HOME = /data/Android/android-sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4.1, Build version 9F2000
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 26.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[!] IntelliJ IDEA Ultimate Edition (version 2018.1.5)
• IntelliJ at /Applications/IntelliJ IDEA.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins
[✓] VS Code (version 1.25.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.16.0
[✓] Connected devices (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)
! Doctor found issues in 1 category.
zimmi, isaLima21, zzpmaster, claudiowagner, bradyt and 7 more
Metadata
Metadata
Assignees
Labels
a: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)a: qualityA truly polished experienceA truly polished experiencef: date/time pickerDate or time picker widgetsDate or time picker widgetsf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
