Hello, I have a problem with the drawer became blank after stacking an image container below the scaffold. The problem only persists when finishing debugging.
return InnerDrawer(
key: _innerDrawerKey,
onTapClose: true,
swipe: true,
offset: IDOffset.only(bottom: 0, top: 0, right: 0, left: 0.5),
borderRadius: 20,
leftChild: CustomDrawer(
pageName: 'Home',
),
scaffold: Stack(
children: <Widget>[
Container(
height: _screenHeight,
decoration: BoxDecoration(
image: DecorationImage(
fit: BoxFit.fill,
image: AssetImage('assets/sunflower.jpg')
),
),
child: BackdropFilter(
filter: prefix0.ImageFilter.blur(sigmaX: 5.0, sigmaY: 5.0),
child: Container(
decoration: BoxDecoration(color: Colors.white.withOpacity(0.0)),
),
),
),
Scaffold(
backgroundColor: Colors.transparent,
appBar: AppBar(
backgroundColor: Colors.transparent,
elevation: 0,
centerTitle: true,
title: OutlineButton(
borderSide: BorderSide(
color: Colors.white, style: BorderStyle.solid, width: 1),
highlightedBorderColor: Colors.white30,
shape: StadiumBorder(),
padding: EdgeInsets.only(
bottom: 2.0, top: 2.0, left: 40.0, right: 0.0),
child: Row(
children: <Widget>[
Text(
'ACCOUNTS',
style: TextStyle(color: Colors.white),
),
Padding(
padding: const EdgeInsets.only(left: 2.0),
child: Icon(
Icons.keyboard_arrow_down,
color: Colors.white,
),
)
],
),
onPressed: () {},
),
leading: IconButton(
icon: Icon(Icons.menu),
onPressed: () {
_innerDrawerKey.currentState
.toggle(direction: InnerDrawerDirection.start);
},
),
actions: <Widget>[
RawMaterialButton(
child: Column(
children: <Widget>[
Icon(Icons.lock_open),
Padding(
padding: const EdgeInsets.only(top: 5),
child: Text(
'LOGOUT',
style: TextStyle(color: Colors.white, fontSize: 9),
),
)
],
),
onPressed: () {},
)
],
),
body: SingleChildScrollView(
child: Column(
children: <Widget>[
Container(
height: _screenHeight / 4,
width: _screenWidth,
child: PageView(
children: <Widget>[
Container(
color: Colors.red,
child: Stack(
children: <Widget>[
Positioned(
top: _screenHeight / 14,
left: _screenWidth / 3,
child: Text(
'RM 422',
style: TextStyle(
color: Colors.white,
fontSize: 30,
fontWeight: FontWeight.w200,
),
))
],
),
),
Container(
color: Colors.blue,
),
Container(
color: Colors.green,
),
],
),
),
],
)),
),
],
),
);
return Material(
child: ListView(
children: <Widget>[
DrawerHeader(
decoration: BoxDecoration(color: Colors.teal[700]),
child: Stack(children: <Widget>[
Positioned(
bottom: 12.0,
left: 16.0,
child: Text("Flutter Step-by-Step",
style: TextStyle(
color: Colors.white,
fontSize: 20.0,
fontWeight: FontWeight.w500))),
]),
),
DrawerItem(
icon: Icons.home,
text: 'Home',
onTap: () {
Navigator.pushReplacementNamed(context, '/');
},
selected: this.pageName.contains('Home'),
),
DrawerItem(
icon: Icons.event,
text: 'Events',
onTap: () {
Navigator.pushReplacementNamed(context, Routes.events);
},
selected: this.pageName.contains('Events'),
),
DrawerItem(
icon: Icons.note,
text: 'Notes',
onTap: () {
Navigator.pushReplacementNamed(context, Routes.notes);
},
selected: this.pageName.contains('Notes'),
),
ListTile(
title: Text('0.0.1'),
onTap: () {},
)
],
),
);
return ListTileTheme(
selectedColor: Colors.teal[300],
iconColor: Colors.black,
child: ListTile(
leading: Icon(this.icon),
title: Text(this.text),
selected: selected,
onTap: this.onTap,
),
);
[β] Flutter (Channel stable, v1.12.13+hotfix.5, on Microsoft Windows [Version 6.3.9600], locale en-US)
β’ Flutter version 1.12.13+hotfix.5 at D:\flutter
β’ Framework revision 27321ebbad (2 days ago), 2019-12-10 18:15:01 -0800
β’ Engine revision 2994f7e1e6
β’ Dart version 2.7.0
[β] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
β’ Android SDK at
β’ Android NDK location not configured (optional; useful for native profiling support)
β’ Platform android-29, build-tools 29.0.2
β’ Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
β’ Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
β’ All Android licenses accepted.
[β] Android Studio (version 3.5)
β’ Android Studio at C:\Program Files\Android\Android Studio
β’ Flutter plugin version 42.1.1
β’ Dart plugin version 191.8593
β’ Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[β] VS Code (version 1.40.2)
β’ VS Code at
β’ Flutter extension version 3.7.1
[β] Connected device (1 available)
β’ CPH1803 β’ 5b907b66 β’ android-arm64 β’ Android 8.1.0 (API 27)
β’ No issues found!