Skip to content

Instantly share code, notes, and snippets.

@pedromassango
Last active June 10, 2020 11:54
Show Gist options
  • Select an option

  • Save pedromassango/d6067b73b5209cea37f37f16c0cf2d6e to your computer and use it in GitHub Desktop.

Select an option

Save pedromassango/d6067b73b5209cea37f37f16c0cf2d6e to your computer and use it in GitHub Desktop.

Comments

Comment 1

I wasn't able to reproduce the issue with the provided sample code and also I wasn't able to reproduce the issue with the code bellow in the current stable channel:

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: InkWell(
            onTap: () {
              //Navigator.of(context).push(getAqLanesEditRoute(mapIdx: mapIdx, initialBG: bgIdx));
            },
            child: new Material(
              child: new Column(
                children: <Widget>[
                  new Container(
                    decoration: new BoxDecoration(
                      color: Colors.white,
                      boxShadow: <BoxShadow>[
                        new BoxShadow (
                          color: const Color(0xcc000000),
                          offset: new Offset(0.0, 3.0),
                          blurRadius: 5.0,
                        ),
                      ],
                    ),
                    height: 200,

                    child: Center(child: Text("Hello Flutter"),),
                  ),
                  //new ChqHorizontalLine(
                  //  color: ChqTheme.colors(Theme.of(context).brightness).cardBorder,
                  //),
                ],
              ),
            ),
          ),
        ),
      ),
    );
  }
}

Running the code above the box shadow is added and we see a black shadow bellow the Container widget as expected.

Flutter Doctor:

Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.17.3, on Microsoft Windows [Version 10.0.18362.900], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[√] Android Studio (version 3.6)
[!] Android Studio (version 4.0)
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
[!] Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    X android-studio-dir = C:\Program
    X Android Studio not found at C:\Program
[√] IntelliJ IDEA Community Edition (version 2019.3)
[√] VS Code (version 1.45.1)
[√] Connected device (1 available)

! Doctor found issues in 2 categories.

Comment 2

I will close this for now since the issue is not reproducible in the current stable channel. Please feel free to re-open it and provide a reproducible code to reproduce the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment