Skip to content

Material elevation shadow not display correctly, when the page is long or scroll down #59424

Closed

Description

@peterlau0010

Normal case, if the page no need to scroll.
flutter_01

After scroll down, or the page is long (added a box in tail)
Material shadow not display correctly.
flutter_04

Code below:

Material(
                elevation: 20,
                shadowColor: Theme.of(context).primaryColor,
                child: Padding(
                  padding: const EdgeInsets.all(8.0),
                  child: Form(
                    autovalidate: true,
                    key: _formKey,
                    child: Column(
                      children: [
                        PhoneNumberWidget(controller: _phoneController),
                        PasswordWidget(controller: _passwordController),
                      ],
                    ),
                  ),
                ),
              ),

Added this to make page longer, for testing the shadow

Padding(
              padding: const EdgeInsets.all(100),
              child: Container(),
            ),
[✓] Flutter (Channel beta, 1.19.0-4.1.pre, on Mac OS X 10.15.5 19F101, locale en-GB)
    • Flutter version 1.19.0-4.1.pre at /Users/peterlau/Documents/Git/flutter
    • Framework revision f994b76974 (5 days ago), 2020-06-09 15:53:13 -0700
    • Engine revision 9a28c3bcf4
    • Dart version 2.9.0 (build 2.9.0-14.1.beta)

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, set ANDROID_SDK_ROOT to that location.
      You may also want to add it to your PATH environment variable.


[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.3

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).

[✓] VS Code (version 1.45.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.11.0

[✓] Connected device (1 available)
    • iPhone SE (2nd generation) • B680C4ED-2753-4182-8253-CF944A9EB265 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-5 (simulator)

Activity

  1. iapicca commented on Jun 15, 2020

    @iapicca

    Hi @peterlau0010
    I believe the issue might depend from Padding
    if your intent is to increase the size vertically
    try to replace EdgeInsets.all(...) with EdgeInsets.symmetric(vertical: ...);

    if the issue persist please provide a complete reproducible minimal code sample
    Thank you

  2. added
    in triagePresently being triaged by the triage team
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Jun 15, 2020
  3. added
    p: material_uimaterial_ui package in flutter/packages
    frameworkflutter/packages/flutter repository. See also f: labels.
    on Jun 15, 2020
  4. peterlau0010 commented on Jun 17, 2020

    @peterlau0010
    Author

    Hi @iapicca ,

    Below is the sample code to reproduce the problem:

    I found that the problem should be inside Listview, and using padding argument..

    Don't whether I am using in a wrong way, or it is a bug..

    flutter_01

    import 'package:booking_system_fe/pages/commons/password.dart';
    import 'package:flutter/material.dart';
    import 'package:loading_overlay/loading_overlay.dart';
    
    class TestingPage extends StatefulWidget {
      @override
      _TestingPageState createState() => _TestingPageState();
    }
    
    class _TestingPageState extends State<TestingPage> {
      final _formKey = GlobalKey<FormState>();
      final _passwordController = TextEditingController();
    
      @override
      Widget build(BuildContext context) {
        return LoadingOverlay(
          isLoading: false,
          child: GestureDetector(
            child: Scaffold(
              appBar: AppBar(
                title: Text('Sample'),
              ),
              body: SafeArea(
                child: Padding(
                  padding: EdgeInsets.symmetric(
                      horizontal: MediaQuery.of(context).size.width * 0.05),
                  child: ListView(
                    padding: EdgeInsets.symmetric(
                        vertical: MediaQuery.of(context).size.height * 0.05), // If this line removed, problem solved. But I need to add padding... 
                    children: [
                      Padding(
                        padding: const EdgeInsets.only(top: 30.0),
                        child: Container(
                          height: 300,
                          child: Center(
                            child: Text('Any Content here'),
                          ),
                        ),
                      ),
                      Material(
                        elevation: 20,
                        shadowColor: Colors.blue,
                        child: Padding(
                          padding: const EdgeInsets.all(8.0),
                          child: Form(
                            autovalidate: true,
                            key: _formKey,
                            child: Column(
                              children: [
                                Padding(
                                  padding: const EdgeInsets.all(8.0),
                                  child: PasswordWidget(
                                      controller: _passwordController),
                                ),
                                TextFormField(
                                  decoration: InputDecoration(
                                    labelText: 'Password',
                                    helperText: '',
                                    suffixIcon: Icon(Icons.lock),
                                  ),
                                ),
                              ],
                            ),
                          ),
                        ),
                      ),
                      Padding(
                        padding: const EdgeInsets.only(top: 30.0),
                        child: Container(
                          height: 300,
                          child: Center(
                            child: Text('Any Content here'),
                          ),
                        ),
                      ),
                      Padding(
                        padding: const EdgeInsets.only(top: 30.0),
                        child: RaisedButton(
                          onPressed: () => {},
                          child: Text('Sample button'),
                        ),
                      ),
                    ],
                  ),
                ),
              ),
            ),
          ),
        );
      }
    }
    
  5. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Jun 17, 2020
  6. removed
    in triagePresently being triaged by the triage team
    on Jun 17, 2020
  7. peterlau0010 commented on Jun 24, 2020

    @peterlau0010
    Author

    any update for this issue?

  8. TahaTesser commented on Jun 25, 2020

    @TahaTesser
    Contributor
    Code Sample
    import 'package:flutter/material.dart';
    
    void main() => runApp(MyApp());
    
    class MyApp extends StatelessWidget {
      @override
      Widget build(BuildContext context) {
        return MaterialApp(
          title: 'Material App',
          home: TestingPage(),
        );
      }
    }
    
    class Home extends StatelessWidget {
      @override
      Widget build(BuildContext context) {
        return Scaffold(
          appBar: AppBar(
            title: Text('Material App Bar'),
          ),
          body: Center(
            child: Container(
              child: Text('Hello World'),
            ),
          ),
          floatingActionButton: FloatingActionButton(
            child: Icon(Icons.add),
            onPressed: () {},
          ),
        );
      }
    }
    
    class TestingPage extends StatefulWidget {
      @override
      _TestingPageState createState() => _TestingPageState();
    }
    
    class _TestingPageState extends State<TestingPage> {
      final _formKey = GlobalKey<FormState>();
      final _passwordController = TextEditingController();
    
      @override
      Widget build(BuildContext context) {
        return GestureDetector(
          child: Scaffold(
            appBar: AppBar(
              title: Text('Sample'),
            ),
            body: SafeArea(
              child: Padding(
                padding: EdgeInsets.symmetric(
                    horizontal: MediaQuery.of(context).size.width * 0.05),
                child: ListView(
                  padding: EdgeInsets.symmetric(
                      vertical: MediaQuery.of(context).size.height *
                          0.05), // If this line removed, problem solved. But I need to add padding...
                  children: [
                    Padding(
                      padding: const EdgeInsets.only(top: 30.0),
                      child: Container(
                        height: 300,
                        child: Center(
                          child: Text('Any Content here'),
                        ),
                      ),
                    ),
                    Material(
                      elevation: 20,
                      shadowColor: Colors.blue,
                      child: Padding(
                        padding: const EdgeInsets.all(8.0),
                        child: Form(
                          autovalidate: true,
                          key: _formKey,
                          child: Column(
                            children: [
                              Padding(
                                padding: const EdgeInsets.all(8.0),
                                child: TextField(controller: _passwordController),
                              ),
                              TextFormField(
                                decoration: InputDecoration(
                                  labelText: 'Password',
                                  helperText: '',
                                  suffixIcon: Icon(Icons.lock),
                                ),
                              ),
                            ],
                          ),
                        ),
                      ),
                    ),
                    Padding(
                      padding: const EdgeInsets.only(top: 30.0),
                      child: Container(
                        height: 300,
                        child: Center(
                          child: Text('Any Content here'),
                        ),
                      ),
                    ),
                    Padding(
                      padding: const EdgeInsets.only(top: 30.0),
                      child: RaisedButton(
                        onPressed: () => {},
                        child: Text('Sample button'),
                      ),
                    ),
                  ],
                ),
              ),
            ),
          ),
        );
      }
    }
    
    
    flutter doctor -v
    [✓] Flutter (Channel dev, 1.20.0-1.0.pre, on Mac OS X 10.15.5 19F101, locale
        en-GB)
        • Flutter version 1.20.0-1.0.pre at /Users/tahatesser/Code/flutter_dev
        • Framework revision f73f498da1 (7 days ago), 2020-06-18 08:23:22 -0700
        • Engine revision c0d52b98d1
        • Dart version 2.9.0 (build 2.9.0-16.0.dev 2b917f5b6a)
    
     
    [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
        • Android SDK at /Users/tahatesser/Code/sdk
        • Platform android-29, build-tools 29.0.3
        • ANDROID_HOME = /Users/tahatesser/Code/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-6222593)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 11.5)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Xcode 11.5, Build version 11E608c
        • CocoaPods version 1.9.3
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 4.0)
        • Android Studio at /Applications/Android Studio.app/Contents
        • Flutter plugin version 46.0.2
        • Dart plugin version 193.7361
        • Java version OpenJDK Runtime Environment (build
          1.8.0_242-release-1644-b3-6222593)
    
    [✓] VS Code (version 1.46.1)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.11.0
    
    [✓] Connected device (5 available)
        • SM M305F      • 32003c30dc19668f          • android-arm64  • Android 10
          (API 29)
        • Taha’s iPhone • 00008020-001059882212002E • ios            • iOS 13.5.1
        • macOS         • macOS                     • darwin-x64     • Mac OS X
          10.15.5 19F101
        • Web Server    • web-server                • web-javascript • Flutter Tools
        • Chrome        • chrome                    • web-javascript • Google Chrome
          83.0.4103.116
    
    • No issues found!
    
  9. xu-baolin commented on Aug 4, 2020

    @xu-baolin
    Member

    I am currently investigating this issue.

  10. xu-baolin commented on Aug 6, 2020

    @xu-baolin
    Member

    @liyuqian Hi, this issue is because when overflow, the shadow was be cut by clipRect(the shadow with an offset at the same layer and overflow too). Via #59364 you said all of the widget's clipBehavior will change to Clip.none. So this problem will disappear in time, is that right?
    In addition, do these widgets(such as List, PageView, etc..) need to expose the clipBehavior interface for developers to control?

  11. 5 remaining items

  12. TahaTesser commented on Oct 13, 2020

    @TahaTesser
    Contributor

    Issue persists

    complete code sample
    import 'package:flutter/material.dart';
    
    void main() {
      runApp(MyApp());
    }
    
    class MyApp extends StatelessWidget {
      @override
      Widget build(BuildContext context) {
        return MaterialApp(
          // home: Example1(),
          home: Example2(),
          // home: Example3(),
          // home: ExampleFixed(),
        );
      }
    }
    
    class Example1 extends StatelessWidget {
      @override
      Widget build(BuildContext context) {
        return Scaffold(
          appBar: AppBar(
            title: Text("test"),
          ),
          body: Container(
            child: Column(
              children: [
                Text("test"),
                Container(
                  margin: EdgeInsets.all(10),
                  child: Row(
                    children: [
                      ShadowBox(),
                      ShadowBox(),
                      ShadowBox(),
                    ],
                  ),
                ),
              ],
            ),
          ),
        );
      }
    }
    
    class Example2 extends StatelessWidget {
      @override
      Widget build(BuildContext context) {
        return Scaffold(
          appBar: AppBar(
            title: Text("test"),
          ),
          body: Container(
            child: Column(
              children: [
                Text("test"),
                Container(
                  margin: EdgeInsets.all(10),
                  child: Row(
                    children: [
                      ShadowBox(),
                      ShadowBox(),
                      ShadowBox(),
                      ShadowBox(),
                      ShadowBox(),
                      ShadowBox(),
                    ],
                  ),
                ),
              ],
            ),
          ),
        );
      }
    }
    
    class Example3 extends StatelessWidget {
      @override
      Widget build(BuildContext context) {
        return Scaffold(
          appBar: AppBar(
            title: Text("test"),
          ),
          body: Container(
            child: Column(
              children: [
                Text("test"),
                Container(
                  height: 100,
                  margin: EdgeInsets.all(10),
                  child: ListView.builder(
                    // CHANGE FROM ROW TO LIST
                    scrollDirection: Axis.horizontal,
                    itemCount: 5,
                    itemBuilder: (c, i) => ShadowBox(),
                  ),
                ),
              ],
            ),
          ),
        );
      }
    }
    
    class ExampleFixed extends StatelessWidget {
      @override
      Widget build(BuildContext context) {
        return Scaffold(
          appBar: AppBar(
            title: Text("test"),
          ),
          body: Container(
            child: Column(
              children: [
                Text("test"),
                Container(
                  height: 100,
                  margin: EdgeInsets.all(10),
                  child: ListView.builder(
                    // CHANGE FROM ROW TO LIST
                    scrollDirection: Axis.horizontal,
                    itemCount: 5,
                    itemBuilder: (c, i) => ShadowBox(),
                    clipBehavior: Clip.none,
                  ),
                ),
              ],
            ),
          ),
        );
      }
    }
    
    class ShadowBox extends StatelessWidget {
      @override
      Widget build(BuildContext context) {
        return Container(
          height: 100,
          width: 100,
          alignment: Alignment.center,
          decoration: BoxDecoration(
            color: Colors.white,
            borderRadius: BorderRadius.all(
              Radius.circular(15),
            ),
            boxShadow: [
              BoxShadow(
                color: Colors.blue,
                offset: Offset(0, 0),
                blurRadius: 10.0,
                spreadRadius: 5.0,
              )
            ],
          ),
        );
      }
    }
    
    flutter doctor -v
    [✓] Flutter (Channel stable, 1.22.1, on Mac OS X 10.15.7 19H2, locale en-GB)
        • Flutter version 1.22.1 at /Users/tahatesser/Code/flutter_stable
        • Framework revision f30b7f4db9 (5 days ago), 2020-10-08 10:06:30 -0700
        • Engine revision 75bef9f6c8
        • Dart version 2.10.1
    
     
    [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
        • Android SDK at /Users/tahatesser/Code/sdk
        • Platform android-30, build-tools 30.0.2
        • ANDROID_HOME = /Users/tahatesser/Code/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-6222593)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Xcode 12.0.1, Build version 12A7300
        • CocoaPods version 1.10.0.rc.1
    
    [!] 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-6222593)
    
    [✓] VS Code (version 1.50.0)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.15.0
    
    [✓] Connected device (1 available)
        • RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64 • Android 10 (API 29)
    
    ! Doctor found issues in 1 category.
    flutter doctor -v
    [✓] Flutter (Channel master, 1.23.0-14.0.pre.152, on Mac OS X 10.15.7 19H2
        x86_64, locale en-GB)
        • Flutter version 1.23.0-14.0.pre.152 at
          /Users/tahatesser/Code/flutter_master
        • Framework revision 62cf4dbf10 (4 hours ago), 2020-10-13 14:12:02 +0800
        • Engine revision 6634406889
        • Dart version 2.11.0 (build 2.11.0-213.0.dev)
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
        • Android SDK at /Users/tahatesser/Code/sdk
        • Platform android-30, build-tools 30.0.2
        • ANDROID_HOME = /Users/tahatesser/Code/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-6222593)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Xcode 12.0.1, Build version 12A7300
        • CocoaPods version 1.10.0.rc.1
    
    [✓] 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-6222593)
    
    [✓] VS Code (version 1.50.0)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.15.0
    
     
    [✓] Connected device (1 available)            
        • RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64 • Android 10 (API 29)
    
    • No issues found!
  13. nfortiz commented on Oct 29, 2020

    @nfortiz

    The problem could also be SafeArea 🤔

    @Ahmadre I don't think so, I have the same problem but I dont use SafeArea.

    Scaffold(
      body: Column(
        children: [
            Expanded(
                child: ListView(
                  children: [
                    //Widgets with box shadow
                  ]
                )
            )
        ]
      )
    )
  14. maheshj01 commented on Nov 30, 2022

    @maheshj01
    Member

    I can still reproduce the issue on the latest stable and master channel.

    image

    flutter doctor -v
    import 'package:flutter/material.dart';
    
    void main() {
      runApp(MyApp());
    }
    
    class MyApp extends StatelessWidget {
      @override
      Widget build(BuildContext context) {
        return MaterialApp(
          // home: Example1(),
          home: TestingPage(),
        );
      }
    }
    
    class TestingPage extends StatefulWidget {
      @override
      _TestingPageState createState() => _TestingPageState();
    }
    
    class _TestingPageState extends State<TestingPage> {
      final _formKey = GlobalKey<FormState>();
      final _passwordController = TextEditingController();
    
      @override
      Widget build(BuildContext context) {
        return  GestureDetector(
            child: Scaffold(
              appBar: AppBar(
                title: Text('Sample'),
              ),
              body: SafeArea(
                child: Padding(
                  padding: EdgeInsets.symmetric(
                      horizontal: MediaQuery.of(context).size.width * 0.05),
                  child: ListView(
                    padding: EdgeInsets.symmetric(
                        vertical: MediaQuery.of(context).size.height * 0.05), // If this line removed, problem solved. But I need to add padding... 
                    children: [
                      Padding(
                        padding: const EdgeInsets.only(top: 30.0),
                        child: Container(
                          height: 300,
                          child: Center(
                            child: Text('Any Content here'),
                          ),
                        ),
                      ),
                      Material(
                        elevation: 20,
                        shadowColor: Colors.blue,
                        child: Padding(
                          padding: const EdgeInsets.all(8.0),
                          child: Form(
                            key: _formKey,
                            child: Column(
                              children: [
                                Padding(
                                  padding: const EdgeInsets.all(8.0),
                                  child: TextField(
                                      controller: _passwordController),
                                ),
                                TextFormField(
                                  decoration: const InputDecoration(
                                    labelText: 'Password',
                                    helperText: '',
                                    suffixIcon: Icon(Icons.lock),
                                  ),
                                ),
                              ],
                            ),
                          ),
                        ),
                      ),
                      Padding(
                        padding: const EdgeInsets.only(top: 30.0),
                        child:  Container(
                          height: 300,
                          child:  const Center(
                            child: Text('Any Content here'),
                          ),
                        ),
                      ),
                    ],
                  ),
                ),
              ),
            ),
        );
      }
    }
    flutter doctor -v (mac)
    [✓] Flutter (Channel master, 3.6.0-6.0.pre.33, on macOS 12.6 21G115 darwin-arm64,
        locale en-IN)
        • Flutter version 3.6.0-6.0.pre.33 on channel master at
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision a9858ec524 (72 minutes ago), 2022-11-21 10:58:11 -0500
        • Engine revision 46a6b54295
        • Dart version 2.19.0 (build 2.19.0-406.0.dev)
        • DevTools version 2.19.0
        • If those were intentional, you can disregard the above warnings; however it is
          recommended to use "git" directly to perform update checks and upgrades.
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4)
        • Android SDK at /Users/mahesh/Library/Android/sdk
        • Platform android-33, build-tools 33.0.0-rc4
        • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
        • Java binary at: /Applications/Android
          Studio.app/Contents/jre/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Build 14A400
        • CocoaPods version 1.11.3
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 2021.2)
        • 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 11.0.12+0-b1504.28-7817840)
    
    [✓] IntelliJ IDEA Community Edition (version 2021.2.1)
        • IntelliJ at /Applications/IntelliJ IDEA CE.app
        • Flutter plugin version 61.2.4
        • Dart plugin version 212.5080.8
    
    [✓] VS Code (version 1.70.2)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.53.20221101
    
    [✓] Connected device (3 available)
        • iPhone 12 Pro (mobile) • 026D5789-9E78-4AD5-B1B2-3F8D4E7F65E4 • ios
          • com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
        • macOS (desktop)        • macos                                • darwin-arm64
          • macOS 12.6 21G115 darwin-arm64
        • Chrome (web)           • chrome                               • web-javascript
          • Google Chrome 107.0.5304.110
    
    [✓] HTTP Host Availability
        • All required HTTP hosts are available
    
    • No issues found!
    
    [✓] Flutter (Channel stable, 3.3.9, on macOS 12.6 21G115 darwin-arm, locale en-IN)
        • Flutter version 3.3.9 on channel stable at /Users/mahesh/Development/flutter
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision b8f7f1f986 (24 hours ago), 2022-11-23 06:43:51 +0900
        • Engine revision 8f2221fbef
        • Dart version 2.18.5
        • DevTools version 2.15.0
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc4)
        • Android SDK at /Users/mahesh/Library/Android/sdk
        • Platform android-33, build-tools 33.0.0-rc4
        • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
        • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
        • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Build 14A400
        • CocoaPods version 1.11.3
    
    [✓] Chrome - develop for the web
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Android Studio (version 2021.2)
        • 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 11.0.12+0-b1504.28-7817840)
    
    [✓] IntelliJ IDEA Community Edition (version 2021.2.1)
        • IntelliJ at /Applications/IntelliJ IDEA CE.app
        • Flutter plugin version 61.2.4
        • Dart plugin version 212.5080.8
    
    [✓] VS Code (version 1.70.2)
        • VS Code at /Applications/Visual Studio Code.app/Contents
        • Flutter extension version 3.53.20221101
    
    [✓] Connected device (3 available)
        • iPhone 12 Pro (mobile) • 026D5789-9E78-4AD5-B1B2-3F8D4E7F65E4 • ios            •
          com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
        • macOS (desktop)        • macos                                • darwin-arm64   • macOS 12.6 21G115 darwin-arm
        • Chrome (web)           • chrome                               • web-javascript • Google Chrome 107.0.5304.110
    
    [✓] HTTP Host Availability
        • All required HTTP hosts are available
    
    • No issues found!
    
  15. Piinks commented on Mar 21, 2023

    @Piinks
    Contributor

    I believe this is fixed by using the clipBehavior on the scroll view and setting it to Clip.none.
    The default clip behavior is Clip.hardEdge which is why the shadow is cut off.

    I am closing this as fixed, but if not please do let us know so we can reopen this and take another look! Thank you!

    Screenshot 2023-03-21 at 5 28 01 PM

  16. github-actions commented on Apr 4, 2023

    @github-actions

    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.

  17. locked as resolved and limited conversation to collaborators on Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    f: scrollingViewports, list views, slivers, etc.found in release: 3.3Found to occur in 3.3found in release: 3.6Found to occur in 3.6frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: material_uimaterial_ui package in flutter/packages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions