Issue 1:
Steps to Reproduce

I am trying to write an application which has the same navigation drawer in all the activities including the one's present in the navigation drawer. Whenever I try to open an activity from the navigation drawer of the same activity, I get the error

main.dart code

final GlobalKey<ScaffoldState> _scaffoldState = new GlobalKey<ScaffoldState>();

void main() => runApp(new MaterialApp(
home: new StudentList(),
routes: <String, WidgetBuilder>{
'parentProfile' : (BuildContext context) => new ParentProfile(),
},
debugShowCheckedModeBanner: false,
));

student_list.dart code

final GlobalKey<ScaffoldState> _scaffoldState = new GlobalKey<ScaffoldState>();

class StudentList extends StatelessWidget {

@override
Widget build(BuildContext context) {
return new Scaffold(
drawer: new Navigation(),
key: _scaffoldState,
appBar: new AppBar(
title: new Text('Student List'),
),
body: new ListView(
children: _constructList(),
)
);
}
}

parent_profile.dart code

final GlobalKey<ScaffoldState> _scaffoldState = new GlobalKey<ScaffoldState>();
class ParentProfile extends StatelessWidget{
@override
Widget build(BuildContext context) {
return new Scaffold(
drawer: new Navigation(),
key: _scaffoldState,
appBar: new AppBar(
title: new Text('Parent Profile'),
),
);
}
}

nav_drawer.dart code

import 'package:flutter/material.dart';
class Navigation extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Drawer(
child: new ListView(
children: <Widget>[
new DrawerHeader(decoration: new BoxDecoration(color: Colors.indigo),
child: new Container(alignment: new Alignment(0.0, 1.0),
child: new Text('Pupil Watch',textAlign: TextAlign.center,
style: new TextStyle(fontSize: 28.0, color: Colors.white),
),
),
),
new ListTile(
onTap: () {Navigator.of(context).popAndPushNamed('parentProfile');},
title: new Text("Parent's Profile", style: new TextStyle(fontSize: 18.0),)),
],
),
);
}
}

On opening the app it opens with a listview with a navigation drawer.

Open the navigation view and open parent profile

This opens the Parent profile activity with a navigation drawer

Again open the drawer and click the parent profile

This causes the issue and opens the parent profile again but when we click back button results in a black screen

Need to click back button again to go to the student list activity

Logs

Flutter Run Output

Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle... 1.0s
Resolving dependencies... 1.3s
Running 'gradlew assembleDebug'... 5.8s
Built build\app\outputs\apk\debug\app-debug.apk (30.7MB).
I/FlutterActivityDelegate( 9262): onResume setting current activity to this
Syncing files to device Android SDK built for x86... 2.6s

🔥 To hot reload your app on the fly, press "r". To restart the app entirely, press "R".
An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:8104/
For a more detailed help message, press "h". To quit, press "q".
I/flutter ( 9262): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter ( 9262): The following assertion was thrown building FocusScope-[GlobalKey#5e679](dirty, state:
I/flutter ( 9262): _FocusScopeState#b92c9):
I/flutter ( 9262): 'package:flutter/src/widgets/focus_manager.dart': Failed assertion: line 315 pos 12: 'child._parent
I/flutter ( 9262): == null || child._parent == this': is not true.
I/flutter ( 9262):
I/flutter ( 9262): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter ( 9262): more information in this error message to help you determine and fix the underlying cause.
I/flutter ( 9262): In either case, please report this assertion by filing a bug on GitHub:
I/flutter ( 9262): https://github.com/flutter/flutter/issues/new
I/flutter ( 9262):
I/flutter ( 9262): When the exception was thrown, this was the stack:
I/flutter ( 9262): #2 FocusScopeNode.setFirstFocus (package:flutter/src/widgets/focus_manager.dart)
I/flutter ( 9262): #3 FocusScopeNode.reparentScopeIfNeeded (package:flutter/src/widgets/focus_manager.dart:338:7)
I/flutter ( 9262): #4 _FocusScopeState.build (package:flutter/src/widgets/focus_scope.dart:106:28)
I/flutter ( 9262): #5 StatefulElement.build (package:flutter/src/widgets/framework.dart:3713:27)
I/flutter ( 9262): #6 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3625:15)
I/flutter ( 9262): #7 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #8 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5)
I/flutter ( 9262): #9 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #10 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14)
I/flutter ( 9262): #11 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #12 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14)
I/flutter ( 9262): #13 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #14 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14)
I/flutter ( 9262): #15 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #16 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4362:32)
I/flutter ( 9262): #17 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4752:17)
I/flutter ( 9262): #18 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #19 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14)
I/flutter ( 9262): #20 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #21 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14)
I/flutter ( 9262): #22 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #23 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #24 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #25 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5)
I/flutter ( 9262): #26 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #27 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #28 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #29 StatelessElement.update (package:flutter/src/widgets/framework.dart:3685:5)
I/flutter ( 9262): #30 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #31 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #32 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #33 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5)
I/flutter ( 9262): #34 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #35 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #36 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #37 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5)
I/flutter ( 9262): #38 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #39 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #40 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #41 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5)
I/flutter ( 9262): #42 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #43 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #44 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #45 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5)
I/flutter ( 9262): #46 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #47 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4362:32)
I/flutter ( 9262): #48 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4752:17)
I/flutter ( 9262): #49 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #50 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #51 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #52 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5)
I/flutter ( 9262): #53 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #54 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #55 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #56 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5)
I/flutter ( 9262): #57 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #58 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #59 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #60 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5)
I/flutter ( 9262): #61 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #62 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14)
I/flutter ( 9262): #63 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #64 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #65 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #66 StatelessElement.update (package:flutter/src/widgets/framework.dart:3685:5)
I/flutter ( 9262): #67 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #68 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14)
I/flutter ( 9262): #69 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #70 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #71 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #72 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5)
I/flutter ( 9262): #73 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #74 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #75 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #76 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5)
I/flutter ( 9262): #77 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #78 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #79 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #80 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5)
I/flutter ( 9262): #81 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #82 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #83 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #84 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5)
I/flutter ( 9262): #85 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #86 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #87 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #88 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5)
I/flutter ( 9262): #89 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #90 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2883:38)
I/flutter ( 9262): #91 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 9262): #92 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #93 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #94 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5)
I/flutter ( 9262): #95 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5)
I/flutter ( 9262): #96 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 9262): #97 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 9262): #98 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #99 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #100 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5)
I/flutter ( 9262): #101 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5)
I/flutter ( 9262): #102 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 9262): #103 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 9262): #104 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14)
I/flutter ( 9262): #105 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 9262): #106 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 9262): #107 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14)
I/flutter ( 9262): #108 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 9262): #109 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 9262): #110 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14)
I/flutter ( 9262): #111 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 9262): #112 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 9262): #113 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14)
I/flutter ( 9262): #114 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 9262): #115 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 9262): #116 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #117 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #118 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5)
I/flutter ( 9262): #119 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3752:11)
I/flutter ( 9262): #120 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5)
I/flutter ( 9262): #121 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 9262): #122 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 9262): #123 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #124 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #125 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5)
I/flutter ( 9262): #126 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5)
I/flutter ( 9262): #127 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 9262): #128 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 9262): #129 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #130 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #131 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5)
I/flutter ( 9262): #132 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3752:11)
I/flutter ( 9262): #133 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5)
I/flutter ( 9262): #134 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 9262): #135 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 9262): #136 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14)
I/flutter ( 9262): #137 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 9262): #138 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 9262): #139 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #140 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #141 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5)
I/flutter ( 9262): #142 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5)
I/flutter ( 9262): #143 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 9262): #144 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 9262): #145 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14)
I/flutter ( 9262): #146 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 9262): #147 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 9262): #148 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #149 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #150 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5)
I/flutter ( 9262): #151 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3752:11)
I/flutter ( 9262): #152 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5)
I/flutter ( 9262): #153 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 9262): #154 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 9262): #155 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #156 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #157 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5)
I/flutter ( 9262): #158 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5)
I/flutter ( 9262): #159 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 9262): #160 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 9262): #161 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4637:14)
I/flutter ( 9262): #162 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 9262): #163 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 9262): #164 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #165 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #166 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5)
I/flutter ( 9262): #167 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5)
I/flutter ( 9262): #168 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 9262): #169 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 9262): #170 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #171 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #172 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5)
I/flutter ( 9262): #173 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3752:11)
I/flutter ( 9262): #174 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5)
I/flutter ( 9262): #175 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 9262): #176 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 9262): #177 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #178 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #179 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3605:5)
I/flutter ( 9262): #180 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3752:11)
I/flutter ( 9262): #181 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3600:5)
I/flutter ( 9262): #182 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 9262): #183 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 9262): #184 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4420:32)
I/flutter ( 9262): #185 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4752:17)
I/flutter ( 9262): #186 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #187 _TheatreElement.update (package:flutter/src/widgets/overlay.dart:507:16)
I/flutter ( 9262): #188 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #189 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #190 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #191 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5)
I/flutter ( 9262): #192 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #193 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #194 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #195 ProxyElement.update (package:flutter/src/widgets/framework.dart:3892:5)
I/flutter ( 9262): #196 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #197 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14)
I/flutter ( 9262): #198 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #199 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #200 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #201 StatefulElement.update (package:flutter/src/widgets/framework.dart:3782:5)
I/flutter ( 9262): #202 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #203 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14)
I/flutter ( 9262): #204 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #205 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4644:14)
I/flutter ( 9262): #206 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 9262): #207 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3636:16)
I/flutter ( 9262): #208 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
I/flutter ( 9262): #209 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2225:33)
I/flutter ( 9262): #210 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:621:20)
I/flutter ( 9262): #211 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5)
I/flutter ( 9262): #212 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
I/flutter ( 9262): #213 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
I/flutter ( 9262): #214 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
I/flutter ( 9262): #215 _invoke (dart:ui/hooks.dart:120:13)
I/flutter ( 9262): #216 _drawFrame (dart:ui/hooks.dart:109:3)
I/flutter ( 9262): (elided 2 frames from class _AssertionError)
I/flutter ( 9262): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter ( 9262): Another exception was thrown: Duplicate GlobalKey detected in widget tree.
I/flutter ( 9262): Another exception was thrown: 'package:flutter/src/widgets/focus_manager.dart': Failed assertion: line 315 pos 12: 'child._parent == null || child._parent == this': is not true.
I/chatty ( 9262): uid=10085(com.rashed.pupilwatch) ui_thread identical 2 lines
I/flutter ( 9262): Another exception was thrown: 'package:flutter/src/widgets/focus_manager.dart': Failed assertion: line 315 pos 12: 'child._parent == null || child._parent == this': is not true.

Flutter Analyze Output

Analyzing C:\Users\Rashed\AndroidStudioProjects\pupil_watch...
hint - This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib\student_list.dart:31:7 - must_be_immutable
hint - The value of the field '_studentImage' isn't used at lib\student_list.dart:34:12 - unused_field
2 issues found.
(Ran in 8.8s)

Flutter Doctor

[√] Flutter (Channel beta, v0.2.8, on Microsoft Windows [Version 10.0.16299.371], locale en-IN)
• Flutter version 0.2.8 at C:\Users\Rashed\flutter
• Framework revision b397406561 (13 days ago), 2018-04-02 13:53:20 -0700
• Engine revision c903c217a1
• Dart version 2.0.0-dev.43.0.flutter-52afcba357

[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at C:\Users\Rashed\AppData\Local\Android\sdk
• Android NDK at C:\Users\Rashed\AppData\Local\Android\sdk\ndk-bundle
• Platform android-P, build-tools 27.0.3
• Java binary at: C:\Program Files\Android\Android Studio Preview\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b01)
X Android license status unknown.

[√] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[√] Android Studio (version 3.2)
• Android Studio at C:\Program Files\Android\Android Studio Preview
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b01)

[√] Connected devices (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android P (API 27) (emulator)

! Doctor found issues in 1 category.

> For more information about diagnosing and reporting Flutter bugs, please see [https://flutter.io/bug-reports/](https://flutter.io/bug-reports/).

Issue 2:
This seems like a regression from the scrolling refactor. Possibly the same as #8271.