Issue 1:
Steps to Reproduce

I am back again with the issue related to the question already posted by me on stack overflow and google Fluuter-Dev Groups https://groups.google.com/forum/#!searchin/flutter-dev/$20Error$3A$20$27_elements.contains(element)$27$3A$20is$20not$20true%7Csort:date/flutter-dev/T1X7P9SmsG0/MVt7j7RFBAAJ

this issue has been plaguing me but i was unable to reproduce the same issue and now i have somehow tried to repro again and I have posted the code for everyone to figure out what is it that i am doing wrong that's throwing up this assertion error and crashing the app.

I am new to programming and any help would be greatly appreciated. I have trimmed down the code and I am aware of the some of the bugs. But, the only main concern is the Failed assertion: line 3927 pos 14: '_dependents.isEmpty': is not true. and Failed assertion: line 1766 pos 12: '_elements.contains(element)': is not true.

Steps to Reproduce

main.dart

import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:firebase_database/firebase_database.dart';
import 'package:untitled1/addnewbranch.dart';

void main() {
runApp(
new MaterialApp(
home: new Branches(),
),
);
}

class ProjectModel {
BranchSetUpModelData branchesModel;
ProjectModel(this.branchesModel);
}

class BranchSetUpModelData {
String branchName;
String hostelType;
String area;
String city;
BranchSetUpModelData(this.branchName, this.hostelType, this.area, this.city);
}

DatabaseReference _branchesRef;
List<ProjectModel> projectModel = new List();
Map data = {};

List<String> mapKeys = new List();

DataSnapshot dataSnapshot;

class Branches extends StatefulWidget {
//const BranchView({ Key key }) : super(key: key);
const Branches({Key key}) : super(key: key);
@override
_BranchesState createState() => new _BranchesState();
}

class _BranchesState extends State<Branches> {
String userUid = '';
String text;
int noOfBranches = 0;
int itemCount;

Future<Null> getUserUid() async {
try {
//FirebaseUser user = await FirebaseAuth.instance.currentUser();
//userUid = user.uid;
//print(userUid);
_branchesRef =
FirebaseDatabase.instance.reference().child('data').child('branches');
print('branchesref = $_branchesRef');

if (_branchesRef != null) {
try {
_branchesRef.once().then((DataSnapshot snapShot) {
dataSnapshot = snapShot;
print(snapShot is Map);

print(dataSnapshot.value);
data = dataSnapshot.value;
print(data is Map);
print(data);

data.forEach((key, value) {
mapKeys.add(key);
});
print('no of branches = $noOfBranches');
projectModel.clear();
mapKeys.forEach((value) {
_branchesRef.child(value).once().then((DataSnapshot b) {
data = b.value;
data.keys.forEach((k) {
BranchSetUpModelData x = new BranchSetUpModelData(
b.value['branchDetails']['branchName'],
b.value['branchDetails']['hostelType'],
b.value['branchDetails']['area'],
b.value['branchDetails']['city'],
);
print('details from for each loop');
ProjectModel projectModelData = new ProjectModel(x);

projectModel.add(projectModelData);
});
print('projectmodel length = ${projectModel.length}');
});
});
setState(() {
noOfBranches = mapKeys.length;
itemCount = noOfBranches;
});
print('no of branches = $noOfBranches');

data.keys.forEach((k) {
print('inside this foreach loop');
print(k);
});
});
} catch (Exception) {
showDialog(
context: context,
child: new AlertDialog(
content: new Text(Exception.message.toString())));
}
} else {
print('user does not exist');
}
} catch (Exception) {
print(Exception.toString());
showDialog(
context: context,
child: new AlertDialog(
content: new Text(Exception.toString()),
));
}
}

@override
void initState() {
super.initState();
mapKeys.clear();
FirebaseDatabase.instance.setPersistenceEnabled(true);
FirebaseDatabase.instance.setPersistenceCacheSizeBytes(10000000);
getUserUid();
/*setState((){
noOfBranches = mapKeys.length;
});*/
print('noOfBranches in init state= $noOfBranches');
}

@override
Widget build(BuildContext context) {
print('noof branches inside widget build = $noOfBranches');
//if(noOfBranches!=0) {
return new MaterialApp(
title: 'Branches',
theme: new ThemeData(
primaryColor: const Color(0xFF229E9C),
),
home: new Scaffold(
appBar: new AppBar(
title: const Text('Branches'),
backgroundColor: Colors.teal[300],
),
floatingActionButton: new FloatingActionButton(
heroTag: 'branchesHeroTag',
child: new Icon(Icons.add),
backgroundColor: Colors.teal[300],
onPressed: (() {
Navigator.push(
context,
new MaterialPageRoute(
builder: (_) => new AddNewBranch(),
),
);
}),
tooltip: 'Add Branch',
),
body: new Container(
child: new ListView.builder(
padding: const EdgeInsets.only(
left: 4.0,
right: 4.0,
),
itemCount: itemCount,
itemBuilder: (BuildContext context, int index) {
if (noOfBranches != 0) {
// children: <Widget>[

return new InkWell(
onTap: (() {
/*Navigate here to a different page*/
}),
child: new Card(
child: new Column(
children: <Widget>[
new Container(
//margin: const EdgeInsets.only(top:16.0),
padding: const EdgeInsets.only(top: 16.0),
child: new Row(
children: <Widget>[
new Expanded(
child: new Row(
children: <Widget>[
new Container(
margin: const EdgeInsets.only(
left: 16.0,
right: 8.0,
top: 4.0,
bottom: 4.0),
child: new IconButton(
icon: new Icon(Icons.call),
onPressed: (() {}))),
new Container(
child: new Text(
'80/125',
style: new TextStyle(
fontSize: 18.0,
),
),
),
],
),
),
new Expanded(
child: new Row(
textDirection: TextDirection.rtl,
children: [
new Container(
margin:
const EdgeInsets.only(right: 16.0),
child: new Text(
projectModel[index]
.branchesModel
.hostelType,
style: new TextStyle(
fontSize: 18.0,
),
),
),
],
),
),
],
),
),
new Container(
margin:
const EdgeInsets.fromLTRB(16.0, 8.0, 16.0, 4.0),
child: new Row(children: <Widget>[
new Text(
projectModel[index].branchesModel.branchName,
style: new TextStyle(
fontSize: 24.0,
),
),
]),
),
new Container(
margin: const EdgeInsets.only(
left: 16.0, right: 16.0, bottom: 8.0),
child: new Row(
children: <Widget>[
new Text(projectModel[index].branchesModel.city),
],
),
),
],
),
),
); // InkWell ends here so this has to go into ListView.builder
} else {
itemCount = 1;

return new Center(
child: new Column(
// mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,

children: <Widget>[
new Text(
'Setup your Hostel',
style: new TextStyle(
fontSize: 24.0,
color: Colors.grey[400],
fontWeight: FontWeight.bold,
),
),
new Text(
'Please click below + icon to Setup your Hostel',
style: new TextStyle(
fontSize: 16.0,
color: Colors.grey[400],
),
),
],
),
);
}
},
), // ListView.builder ends here.
),
),
);
}
}

globals.dart

library my_app.globals;
import 'package:firebase_auth/firebase_auth.dart';
import 'package:firebase_database/firebase_database.dart';

final FirebaseAuth auth = FirebaseAuth.instance;
final DatabaseReference databaseReference = FirebaseDatabase.instance.reference();

addnewbranch.dart

import 'dart:async';
import 'package:meta/meta.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
import 'package:untitled1/main.dart';
import './globals.dart' as gl;

class BranchSetupModel {
String branchName;
String hostelType;
String area;
String city;
BranchSetupModel(this.branchName, this.hostelType, this.area, this.city);
}

BranchSetupModel branchSetupModel =
new BranchSetupModel('', 'Hostel Type', '', '');

class AddNewBranch extends StatefulWidget {
const AddNewBranch({Key key}) : super(key: key);

@override
State<StatefulWidget> createState() {
return new _AddNewBranchState();
}
}

class _AddNewBranchState extends State<AddNewBranch> {
String actionsString = 'Next';
String userUid;

TextEditingController _branchNameController = new TextEditingController();
TextEditingController _areaController = new TextEditingController();
TextEditingController _cityController = new TextEditingController();

final GlobalKey<FormState> _formKey = new GlobalKey<FormState>();
final GlobalKey<ScaffoldState> _scaffoldKey = new GlobalKey<ScaffoldState>();
bool _formWasEdited = false;
bool _autovalidate = false;
String dropDownvalue = 'Hostel Type';

//FocusNode _branchManagerNameFocusNode = new FocusNode();

String _validateName(String value) {
_formWasEdited = true;
if (value.isEmpty) return 'Name is required.';
final RegExp nameExp = new RegExp(r'^[A-Za-z ]+$');
if (!nameExp.hasMatch(value))
return 'Please enter only alphabetical characters and spaces.';
return null;
}

Future<Null> getUserUid() async {
try {
FirebaseUser user = await FirebaseAuth.instance.currentUser();
userUid = user.uid;
print(userUid);
} catch (Exception) {
print(Exception.toString());
}
}

@override
void initState() {
super.initState();
getUserUid();
_branchNameController =
new TextEditingController(text: branchSetupModel.branchName);
_areaController = new TextEditingController(text: branchSetupModel.area);
_cityController = new TextEditingController(text: branchSetupModel.city);
dropDownvalue = branchSetupModel.hostelType;
branchSetupModel = new BranchSetupModel('', 'Hostel Type', '', '');
}

@override
Widget build(BuildContext context) {
return new MaterialApp(
theme: new ThemeData(
primarySwatch: Colors.teal,
),
title: 'Branch Setup',
home: new Scaffold(
appBar: new AppBar(
title: const Text('Add New Branch'),
backgroundColor: Colors.teal[300],
leading: new IconButton(
icon: new Icon(Icons.arrow_back),
onPressed: (() {
print('back button clicked');
//to be removed and to include functionality here
Navigator.push(
context,
new MaterialPageRoute(
builder: (_) => new Branches(),
),
);
}),
),
actions: <Widget>[
new Center(
child: new Column(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: <Widget>[
new FlatButton(
child: new Text(
actionsString,
style: new TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.w500,
color: Colors.white,
),
),
onPressed: () {
print('Save button clicked');

String pushKey = gl.databaseReference
.child('data')
.child('branches')
.push()
.key;
gl.databaseReference
.child('data')
.child('branches')
.child(pushKey)
.child('branchDetails')
.set({
"branchName": branchSetupModel.branchName,
"hostelType": branchSetupModel.hostelType,
"area": branchSetupModel.area,
"city": branchSetupModel.city,
"pushKey": pushKey
});
Navigator.push(
context,
new MaterialPageRoute(
builder: (_) => new Branches(),
),
);
},
splashColor: const Color(0xFF229E9C),
),
],
),
),
],
),
body: new Form(
key: _formKey,
child: new ListView(
children: <Widget>[
new Container(
margin: const EdgeInsets.only(left: 16.0, right: 16.0),
child: new Row(
children: <Widget>[
new Text('Hostel Type'),
],
),
),
new Container(
//height: 56.0,
margin: const EdgeInsets.only(left: 16.0, right: 16.0),
child: new Column(
children: <Widget>[
new DropdownButton<String>(
//key: _dropDownKey,
hint: new Text(dropDownvalue),

items: <String>[
'Mens',
'Womens',
].map(
(String value) {
return new DropdownMenuItem<String>(
value: value,
child: new Text(value),
);
},
).toList(),
onChanged: (String value) {
setState(() {
dropDownvalue = value;
branchSetupModel.hostelType = value;
print(branchSetupModel.hostelType);
});
},
),
],
),
),
new Container(
margin: const EdgeInsets.only(left: 16.0, right: 16.0),
child: new Row(
children: <Widget>[
new Expanded(
child: new TextField(
autocorrect: false,
decoration: new InputDecoration(
labelText: 'Branch Name',
),
controller: _branchNameController,
onChanged: (String value) {
branchSetupModel.branchName =
_branchNameController.text;
print(branchSetupModel.branchName);
},
//validator: _validateName,
),
),
],
),
),
new Container(
margin: const EdgeInsets.only(left: 16.0, right: 16.0),
child: new Row(
children: <Widget>[
new Expanded(
child: new TextField(
decoration: new InputDecoration(
labelText: 'Area/Location',
),
controller: _areaController,
onChanged: (String value) {
branchSetupModel.area = value;
print(branchSetupModel.area);
},
//validator: _validateName,
),
),
],
),
),
new Container(
margin: const EdgeInsets.only(
left: 16.0,
right: 16.0,
),
child: new Row(
children: <Widget>[
new Expanded(
child: new TextField(
decoration: new InputDecoration(
labelText: 'City',
),
controller: _cityController,
onChanged: (String value) {
branchSetupModel.city = value;
},
),
),
],
),
),
],
),
),
),
);
}
}

pubspec.yaml

name: untitled1
description: A new Flutter project.

dependencies:
flutter:
sdk: flutter
google_sign_in: ^1.0.1
firebase_analytics: ^0.1.1
firebase_auth: ^0.3.1
firebase_database: ^0.1.2
firebase_storage: ^0.0.7

dev_dependencies:
flutter_test:
sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true

**_Please integrate the app with firebase to run the code before trying to reproduce the error and make sure the read and write access set to 'true' as I have not added any authentication.

As far as I know the error only occurs in the main.dart file.It works fine for a few times and then the errors start coming in. First, it throws up the error RangeError (index): Invalid value: Valid value range is empty: 0 this error is for the ListView.builder() and then the other two assertion errors come up.

Please can someone tell me what I am doing wrong or is there a different way to achieve the same goal without these errors._**

Logs

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter ( 5120): The following RangeError was thrown building _ScrollableScope:
I/flutter ( 5120): RangeError (index): Invalid value: Valid value range is empty: 0
I/flutter ( 5120):
I/flutter ( 5120): When the exception was thrown, this was the stack:
I/flutter ( 5120): #0 List.[] (dart:core-patch/dart:core/growable_array.dart:141)
I/flutter ( 5120): #1 _BranchesState.build.<anonymous closure> (package:untitled1/main.dart:224:53)
I/flutter ( 5120): #2 SliverChildBuilderDelegate.build (package:flutter/src/widgets/sliver.dart:194:27)
I/flutter ( 5120): #3 SliverMultiBoxAdaptorElement._build.<anonymous closure> (package:flutter/src/widgets/sliver.dart:710:67)
I/flutter ( 5120): #4 _HashMap.putIfAbsent (dart:collection-patch/dart:collection/collection_patch.dart:142)
I/flutter ( 5120): #5 SliverMultiBoxAdaptorElement._build (package:flutter/src/widgets/sliver.dart:710:26)
I/flutter ( 5120): #6 SliverMultiBoxAdaptorElement.performRebuild (package:flutter/src/widgets/sliver.dart:696:69)
I/flutter ( 5120): #7 SliverMultiBoxAdaptorElement.update (package:flutter/src/widgets/sliver.dart:665:7)
I/flutter ( 5120): #8 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #9 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #10 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #11 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4267:32)
I/flutter ( 5120): #12 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4648:17)
I/flutter ( 5120): #13 _ViewportElement.update (package:flutter/src/widgets/viewport.dart:182:17)
I/flutter ( 5120): #14 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #15 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #16 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #17 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #18 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #19 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #20 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #21 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #22 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #23 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #24 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #25 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #26 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #27 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #28 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #29 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #30 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #31 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #32 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #33 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #34 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #35 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #36 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #37 StatelessElement.update (package:flutter/src/widgets/framework.dart:3612:5)
I/flutter ( 5120): #38 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #39 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #40 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #41 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #42 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #43 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #44 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #45 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #46 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #47 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #48 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #49 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #50 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #51 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #52 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #53 StatelessElement.update (package:flutter/src/widgets/framework.dart:3612:5)
I/flutter ( 5120): #54 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #55 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #56 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #57 StatelessElement.update (package:flutter/src/widgets/framework.dart:3612:5)
I/flutter ( 5120): #58 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #59 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #60 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #61 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #62 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #63 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #64 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #65 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #66 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #67 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4267:32)
I/flutter ( 5120): #68 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4648:17)
I/flutter ( 5120): #69 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #70 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #71 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #72 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #73 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #74 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #75 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #76 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #77 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #78 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #79 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #80 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #81 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #82 StatelessElement.update (package:flutter/src/widgets/framework.dart:3612:5)
I/flutter ( 5120): #83 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #84 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #85 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #86 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #87 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #88 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #89 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #90 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #91 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #92 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #93 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #94 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #95 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #96 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #97 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #98 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #99 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #100 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #101 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #102 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #103 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #104 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #105 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #106 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #107 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #108 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #109 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #110 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #111 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #112 StatelessElement.update (package:flutter/src/widgets/framework.dart:3612:5)
I/flutter ( 5120): #113 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #114 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #115 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #116 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #117 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #118 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #119 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #120 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #121 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #122 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #123 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #124 StatelessElement.update (package:flutter/src/widgets/framework.dart:3612:5)
I/flutter ( 5120): #125 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #126 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #127 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #128 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #129 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #130 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #131 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #132 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #133 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #134 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #135 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #136 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #137 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #138 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #139 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #140 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #141 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #142 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): details from for each loop
I/flutter ( 5120): projectmodel length = 1
I/flutter ( 5120): details from for each loop
I/flutter ( 5120): projectmodel length = 2
I/flutter ( 5120): details from for each loop
I/flutter ( 5120): projectmodel length = 3
I/flutter ( 5120): noof branches inside widget build = 3
I/flutter ( 5120): noof branches inside widget build = 3
I/flutter ( 5120): #143 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #144 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #145 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #146 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #147 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #148 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4267:32)
I/flutter ( 5120): #149 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4648:17)
I/flutter ( 5120): #150 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #151 _TheatreElement.update (package:flutter/src/widgets/overlay.dart:507:16)
I/flutter ( 5120): #152 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #153 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #154 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #155 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #156 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #157 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #158 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #159 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #160 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #161 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #162 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #163 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #164 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #165 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #166 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #167 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #168 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #169 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #170 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #171 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #172 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #173 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #174 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #175 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #176 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #177 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #178 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #179 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #180 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #181 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #182 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #183 StatelessElement.update (package:flutter/src/widgets/framework.dart:3612:5)
I/flutter ( 5120): #184 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #185 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #186 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #187 StatelessElement.update (package:flutter/src/widgets/framework.dart:3612:5)
I/flutter ( 5120): #188 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #189 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #190 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #191 StatelessElement.update (package:flutter/src/widgets/framework.dart:3612:5)
I/flutter ( 5120): #192 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #193 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #194 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #195 StatelessElement.update (package:flutter/src/widgets/framework.dart:3612:5)
I/flutter ( 5120): #196 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #197 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #198 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #199 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #200 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #201 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #202 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #203 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #204 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #205 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #206 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #207 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #208 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #209 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #210 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #211 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #212 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #213 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #214 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #215 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #216 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #217 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #218 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #219 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #220 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #221 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #222 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #223 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #224 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #225 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #226 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #227 StatelessElement.update (package:flutter/src/widgets/framework.dart:3612:5)
I/flutter ( 5120): #228 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #229 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #230 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #231 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #232 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #233 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #234 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #235 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #236 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #237 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #238 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #239 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #240 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #241 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #242 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #243 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2251:33)
I/flutter ( 5120): #244 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:580:20)
I/flutter ( 5120): #245 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:200:5)
I/flutter ( 5120): #246 BindingBase&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:713:15)
I/flutter ( 5120): #247 BindingBase&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:649:9)
I/flutter ( 5120): #248 _invoke (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:91)
I/flutter ( 5120): #249 _drawFrame (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:80)
I/flutter ( 5120): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter ( 5120): noof branches inside widget build = 3
I/flutter ( 5120): NoSuchMethodError: The getter 'uid' was called on null.
I/flutter ( 5120): Receiver: null
I/flutter ( 5120): Tried calling: uid
I/flutter ( 5120): Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 3927 pos 14: '_dependents.isEmpty': is not true.

Performing hot reload...
I/flutter ( 5120): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter ( 5120): The following assertion was thrown building TickerMode(mode: disabled):
I/flutter ( 5120): 'package:flutter/src/widgets/framework.dart': Failed assertion: line 1766 pos 12:
I/flutter ( 5120): '_elements.contains(element)': is not true.
I/flutter ( 5120):
I/flutter ( 5120): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter ( 5120): more information in this error message to help you determine and fix the underlying cause.
I/flutter ( 5120): In either case, please report this assertion by filing a bug on GitHub:
I/flutter ( 5120): https://github.com/flutter/flutter/issues/new
I/flutter ( 5120):
I/flutter ( 5120): When the exception was thrown, this was the stack:
I/flutter ( 5120): #2 _InactiveElements.remove (package:flutter/src/widgets/framework.dart:1766:12)
I/flutter ( 5120): #3 Element._retakeInactiveElement (package:flutter/src/widgets/framework.dart:2855:29)
I/flutter ( 5120): #4 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2878:32)
I/flutter ( 5120): #5 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 5120): #6 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #7 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #8 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3530:5)
I/flutter ( 5120): #9 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3525:5)
I/flutter ( 5120): #10 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 5120): #11 _TheatreElement.mount (package:flutter/src/widgets/overlay.dart:497:32)
I/flutter ( 5120): #12 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2890:14)
I/flutter ( 5120): #13 Element.updateChild (package:flutter/src/widgets/framework.dart:2693:12)
I/flutter ( 5120): #14 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #15 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #16 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #17 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #18 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #19 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #20 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #21 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #22 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #23 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #24 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #25 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #26 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #27 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #28 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #29 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #30 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #31 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #32 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #33 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #34 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #35 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #36 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #37 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #38 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #39 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #40 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4540:14)
I/flutter ( 5120): #41 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #42 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #43 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #44 StatelessElement.update (package:flutter/src/widgets/framework.dart:3612:5)
I/flutter ( 5120): #45 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #46 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #47 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #48 StatelessElement.update (package:flutter/src/widgets/framework.dart:3612:5)
I/flutter ( 5120): #49 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #50 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #51 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #52 StatelessElement.update (package:flutter/src/widgets/framework.dart:3612:5)
I/flutter ( 5120): #53 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #54 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #55 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #56 StatelessElement.update (package:flutter/src/widgets/framework.dart:3612:5)
I/flutter ( 5120): #57 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #58 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #59 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #60 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #61 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #62 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #63 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #64 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #65 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #66 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #67 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #68 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #69 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #70 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #71 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #72 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #73 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #74 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #75 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #76 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #77 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #78 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #79 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #80 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #81 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #82 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #83 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #84 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #85 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #86 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #87 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #88 StatelessElement.update (package:flutter/src/widgets/framework.dart:3612:5)
I/flutter ( 5120): #89 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #90 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #91 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #92 StatefulElement.update (package:flutter/src/widgets/framework.dart:3687:5)
I/flutter ( 5120): #93 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #94 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #95 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #96 ProxyElement.update (package:flutter/src/widgets/framework.dart:3797:5)
I/flutter ( 5120): #97 Element.updateChild (package:flutter/src/widgets/framework.dart:2682:15)
I/flutter ( 5120): #98 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3562:16)
I/flutter ( 5120): #99 Element.rebuild (package:flutter/src/widgets/framework.dart:3451:5)
I/flutter ( 5120): #100 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2251:33)
I/flutter ( 5120): #101 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:580:20)
I/flutter ( 5120): #102 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:200:5)
I/flutter ( 5120): #103 BindingBase&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:713:15)
I/flutter ( 5120): #104 BindingBase&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:649:9)
I/flutter ( 5120): #105 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/rendering/binding.dart:286:20)
I/flutter ( 5120): #107 _Timer._runTimers (dart:isolate-patch/dart:isolate/timer_impl.dart:367)
I/flutter ( 5120): #108 _Timer._handleMessage (dart:isolate-patch/dart:isolate/timer_impl.dart:401)
I/flutter ( 5120): #109 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:163)
I/flutter ( 5120): (elided 3 frames from class _AssertionError and package dart:async-patch)
I/flutter ( 5120): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter ( 5120): noof branches inside widget build = 3
I/flutter ( 5120): Another exception was thrown: Duplicate GlobalKeys detected in widget tree.
Reloaded 0 of 464 libraries in 688ms.

Flutter Doctor

[√] Flutter (on Microsoft Windows [Version 10.0.15063], locale en-GB, channel alpha)
• Flutter at C:\Users\Prayuta\flutter
• Framework revision e8aa40eddd (3 weeks ago), 2017-10-17 15:42:40 -0700
• Engine revision 7c4142808c
• Tools Dart version 1.25.0-dev.11.0

[√] Android toolchain - develop for Android devices (Android SDK 27.0.0)
• Android SDK at C:\Users\Prayuta\AppData\Local\Android\sdk
• Platform android-27, build-tools 27.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

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

[√] IntelliJ IDEA Community Edition (version 2017.2)
• Flutter plugin version 18.4
• Dart plugin version 172.4343.25

[√] Connected devices
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.1.1 (API 25) (emulator)

Process finished with exit code 0

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

Issue 2:
We'd like to report the version of Dart we embed into the engine when the user runs flutter --version.