You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expansion panel top margin animation may be out of sync. #5848
The top of the expansion panel has a margin that animates from 16dp and 24dp. By playing with it in slow mode, the margin animation appears to sometimes finish first which it shouldn't; they should be in perfect sync.
What seems to be the problem is that the first part of the header (i.e. the text) has a height of 48px, compared to the 56px height of the ExpandIcon. This leads to the following problem (zoomed in for clarity):
When the margin of the container expands through the animation, it first fills the parent container evenly. Thus, the text does not move.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
TahaTesser commentedon May 22, 2020
Top margin does animate sooner
flutter doctor -v
Looks like there is no
ExpansionPanelin https://gallery.flutter.dev/#/Removing gallery label
2 remaining items
TahaTesser commentedon Dec 29, 2020
code sample
flutter doctor -v
[✓] Flutter (Channel stable, 1.22.5, on macOS 11.1 20C69 darwin-x64, locale en-GB) • Flutter version 1.22.5 at /Users/tahatesser/Code/flutter_stable • Framework revision 7891006299 (3 weeks ago), 2020-12-10 11:54:40 -0800 • Engine revision ae90085a84 • Dart version 2.10.4 [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /Volumes/Extreme/sdk • Platform android-30, build-tools 30.0.3 • ANDROID_HOME = /Volumes/Extreme/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 12.3) • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer • Xcode 12.3, Build version 12C33 • CocoaPods version 1.10.0 [!] Android Studio (version 4.1) • Android Studio at /Applications/Android Studio.app/Contents ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) [✓] VS Code (version 1.52.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.18.0 [✓] Connected device (2 available) • Taha’s iPad (mobile) • 00008020-000255113EE8402E • ios • iOS 14.3 • iPhone 12 (mobile) • 12D8FF8E-2815-436E-9951-B8A6A42E4ACF • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator) ! Doctor found issues in 1 category.[✓] Flutter (Channel master, 1.26.0-2.0.pre.145, on macOS 11.1 20C69 darwin-x64, locale en-GB) • Flutter version 1.26.0-2.0.pre.145 at /Users/tahatesser/Code/flutter_master • Framework revision 38fe7e2b1c (9 hours ago), 2020-12-28 21:39:03 -0500 • Engine revision 892034dc6a • Dart version 2.12.0 (build 2.12.0-179.0.dev) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /Volumes/Extreme/sdk • Platform android-30, build-tools 30.0.3 • ANDROID_HOME = /Volumes/Extreme/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 12.3) • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer • Xcode 12.3, Build version 12C33 • CocoaPods version 1.10.0 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 4.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) [✓] VS Code (version 1.52.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.18.0 [✓] Connected device (4 available) • Taha’s iPad (mobile) • 00008020-000255113EE8402E • ios • iOS 14.3 • iPhone 12 (mobile) • 12D8FF8E-2815-436E-9951-B8A6A42E4ACF • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator) • macOS (desktop) • macos • darwin-x64 • macOS 11.1 20C69 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 87.0.4280.88 • No issues found!morriskurz commentedon May 31, 2022
What seems to be the problem is that the first part of the header (i.e. the text) has a height of 48px, compared to the 56px height of the ExpandIcon. This leads to the following problem (zoomed in for clarity):

When the margin of the container expands through the animation, it first fills the parent container evenly. Thus, the text does not move.
github-actions commentedon Mar 4, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.