<h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto">I am back again with the issue related to the question already posted by me on stack overflow and google Fluuter-Dev Groups <a href="url">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</a></p>
<p dir="auto">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.</p>
<p dir="auto">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 <code class="notranslate">Failed assertion: line 3927 pos 14: '_dependents.isEmpty': is not true.</code> and <code class="notranslate">Failed assertion: line 1766 pos 12: '_elements.contains(element)': is not true.</code></p>
<h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto">main.dart</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="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&lt;ProjectModel&gt; projectModel = new List();
Map data = {};

List&lt;String&gt; 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() =&gt; new _BranchesState();
}

class _BranchesState extends State&lt;Branches&gt; {
  String userUid = '';
  String text;
  int noOfBranches = 0;
  int itemCount;

  Future&lt;Null&gt; 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: (_) =&gt; 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: &lt;Widget&gt;[

                return new InkWell(
                  onTap: (() {
                    /*Navigate here to a different page*/
                  }),
                  child: new Card(
                    child: new Column(
                      children: &lt;Widget&gt;[
                        new Container(
                          //margin: const EdgeInsets.only(top:16.0),
                          padding: const EdgeInsets.only(top: 16.0),
                          child: new Row(
                            children: &lt;Widget&gt;[
                              new Expanded(
                                child: new Row(
                                  children: &lt;Widget&gt;[
                                    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: &lt;Widget&gt;[
                            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: &lt;Widget&gt;[
                              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: &lt;Widget&gt;[
                      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.
        ),
      ),
    );
  }
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'dart:async'</span>;
<span class="pl-k">import</span> <span class="pl-s">'package:flutter/material.dart'</span>;
<span class="pl-k">import</span> <span class="pl-s">'package:flutter/rendering.dart'</span>;
<span class="pl-k">import</span> <span class="pl-s">'package:flutter/widgets.dart'</span>;
<span class="pl-k">import</span> <span class="pl-s">'package:firebase_auth/firebase_auth.dart'</span>;
<span class="pl-k">import</span> <span class="pl-s">'package:firebase_database/firebase_database.dart'</span>;
<span class="pl-k">import</span> <span class="pl-s">'package:untitled1/addnewbranch.dart'</span>;

<span class="pl-k">void</span> <span class="pl-en">main</span>() {
  <span class="pl-en">runApp</span>(
    <span class="pl-k">new</span> <span class="pl-c1">MaterialApp</span>(
      home<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Branches</span>(),
    ),
  );
}

<span class="pl-k">class</span> <span class="pl-c1">ProjectModel</span> {
  <span class="pl-c1">BranchSetUpModelData</span> branchesModel;
  <span class="pl-c1">ProjectModel</span>(<span class="pl-c1">this</span>.branchesModel);
}

<span class="pl-k">class</span> <span class="pl-c1">BranchSetUpModelData</span> {
  <span class="pl-c1">String</span> branchName;
  <span class="pl-c1">String</span> hostelType;
  <span class="pl-c1">String</span> area;
  <span class="pl-c1">String</span> city;
  <span class="pl-c1">BranchSetUpModelData</span>(<span class="pl-c1">this</span>.branchName, <span class="pl-c1">this</span>.hostelType, <span class="pl-c1">this</span>.area, <span class="pl-c1">this</span>.city);
}

<span class="pl-c1">DatabaseReference</span> _branchesRef;
<span class="pl-c1">List</span>&lt;<span class="pl-c1">ProjectModel</span>&gt; projectModel <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">List</span>();
<span class="pl-c1">Map</span> data <span class="pl-k">=</span> {};

<span class="pl-c1">List</span>&lt;<span class="pl-c1">String</span>&gt; mapKeys <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">List</span>();

<span class="pl-c1">DataSnapshot</span> dataSnapshot;

<span class="pl-k">class</span> <span class="pl-c1">Branches</span> <span class="pl-k">extends</span> <span class="pl-c1">StatefulWidget</span> {
  <span class="pl-c">//const BranchView({ Key key }) : super(key: key);</span>
  <span class="pl-k">const</span> <span class="pl-c1">Branches</span>({<span class="pl-c1">Key</span> key}) <span class="pl-k">:</span> <span class="pl-c1">super</span>(key<span class="pl-k">:</span> key);
  <span class="pl-k">@override</span>
  <span class="pl-c1">_BranchesState</span> <span class="pl-en">createState</span>() <span class="pl-k">=&gt;</span> <span class="pl-k">new</span> <span class="pl-c1">_BranchesState</span>();
}

<span class="pl-k">class</span> <span class="pl-c1">_BranchesState</span> <span class="pl-k">extends</span> <span class="pl-c1">State</span>&lt;<span class="pl-c1">Branches</span>&gt; {
  <span class="pl-c1">String</span> userUid <span class="pl-k">=</span> <span class="pl-s">''</span>;
  <span class="pl-c1">String</span> text;
  <span class="pl-c1">int</span> noOfBranches <span class="pl-k">=</span> <span class="pl-c1">0</span>;
  <span class="pl-c1">int</span> itemCount;

  <span class="pl-c1">Future</span>&lt;<span class="pl-c1">Null</span>&gt; <span class="pl-en">getUserUid</span>() <span class="pl-k">async</span> {
    <span class="pl-k">try</span> {
      <span class="pl-c">//FirebaseUser user = await FirebaseAuth.instance.currentUser();</span>
      <span class="pl-c">//userUid = user.uid;</span>
      <span class="pl-c">//print(userUid);</span>
      _branchesRef <span class="pl-k">=</span>
          <span class="pl-c1">FirebaseDatabase</span>.instance.<span class="pl-en">reference</span>().<span class="pl-en">child</span>(<span class="pl-s">'data'</span>).<span class="pl-en">child</span>(<span class="pl-s">'branches'</span>);
      <span class="pl-en">print</span>(<span class="pl-s">'branchesref = $<span class="pl-v">_branchesRef</span>'</span>);

      <span class="pl-k">if</span> (_branchesRef <span class="pl-k">!=</span> <span class="pl-c1">null</span>) {
        <span class="pl-k">try</span> {
          _branchesRef.<span class="pl-en">once</span>().<span class="pl-en">then</span>((<span class="pl-c1">DataSnapshot</span> snapShot) {
            dataSnapshot <span class="pl-k">=</span> snapShot;
            <span class="pl-en">print</span>(snapShot <span class="pl-k">is</span> <span class="pl-c1">Map</span>);

            <span class="pl-en">print</span>(dataSnapshot.value);
            data <span class="pl-k">=</span> dataSnapshot.value;
            <span class="pl-en">print</span>(data <span class="pl-k">is</span> <span class="pl-c1">Map</span>);
            <span class="pl-en">print</span>(data);

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

                  projectModel.<span class="pl-en">add</span>(projectModelData);
                });
                <span class="pl-en">print</span>(<span class="pl-s">'projectmodel length = <span class="pl-s">${<span class="pl-v">projectModel</span>.<span class="pl-v">length</span>}</span>'</span>);
              });
            });
            <span class="pl-en">setState</span>(() {
              noOfBranches <span class="pl-k">=</span> mapKeys.length;
              itemCount <span class="pl-k">=</span> noOfBranches;
            });
            <span class="pl-en">print</span>(<span class="pl-s">'no of branches = $<span class="pl-v">noOfBranches</span>'</span>);

            data.keys.<span class="pl-en">forEach</span>((k) {
              <span class="pl-en">print</span>(<span class="pl-s">'inside this foreach loop'</span>);
              <span class="pl-en">print</span>(k);
            });
          });
        } <span class="pl-k">catch</span> (<span class="pl-c1">Exception</span>) {
          <span class="pl-en">showDialog</span>(
              context<span class="pl-k">:</span> context,
              child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">AlertDialog</span>(
                  content<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Text</span>(<span class="pl-c1">Exception</span>.message.<span class="pl-en">toString</span>())));
        }
      } <span class="pl-k">else</span> {
        <span class="pl-en">print</span>(<span class="pl-s">'user does not exist'</span>);
      }
    } <span class="pl-k">catch</span> (<span class="pl-c1">Exception</span>) {
      <span class="pl-en">print</span>(<span class="pl-c1">Exception</span>.<span class="pl-en">toString</span>());
      <span class="pl-en">showDialog</span>(
          context<span class="pl-k">:</span> context,
          child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">AlertDialog</span>(
            content<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Text</span>(<span class="pl-c1">Exception</span>.<span class="pl-en">toString</span>()),
          ));
    }
  }

  <span class="pl-k">@override</span>
  <span class="pl-k">void</span> <span class="pl-en">initState</span>() {
    <span class="pl-c1">super</span>.<span class="pl-en">initState</span>();
    mapKeys.<span class="pl-en">clear</span>();
    <span class="pl-c1">FirebaseDatabase</span>.instance.<span class="pl-en">setPersistenceEnabled</span>(<span class="pl-c1">true</span>);
    <span class="pl-c1">FirebaseDatabase</span>.instance.<span class="pl-en">setPersistenceCacheSizeBytes</span>(<span class="pl-c1">10000000</span>);
    <span class="pl-en">getUserUid</span>();
    <span class="pl-c">/*setState((){</span>
<span class="pl-c">      noOfBranches = mapKeys.length;</span>
<span class="pl-c">    });*/</span>
    <span class="pl-en">print</span>(<span class="pl-s">'noOfBranches in init state= $<span class="pl-v">noOfBranches</span>'</span>);
  }

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

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

                <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">Center</span>(
                  child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Column</span>(
<span class="pl-c">//            mainAxisSize: MainAxisSize.min,</span>
                    mainAxisAlignment<span class="pl-k">:</span> <span class="pl-c1">MainAxisAlignment</span>.center,

                    children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[
                      <span class="pl-k">new</span> <span class="pl-c1">Text</span>(
                        <span class="pl-s">'Setup your Hostel'</span>,
                        style<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">TextStyle</span>(
                          fontSize<span class="pl-k">:</span> <span class="pl-c1">24.0</span>,
                          color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.grey[<span class="pl-c1">400</span>],
                          fontWeight<span class="pl-k">:</span> <span class="pl-c1">FontWeight</span>.bold,
                        ),
                      ),
                      <span class="pl-k">new</span> <span class="pl-c1">Text</span>(
                        <span class="pl-s">'Please click below + icon to Setup your Hostel'</span>,
                        style<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">TextStyle</span>(
                          fontSize<span class="pl-k">:</span> <span class="pl-c1">16.0</span>,
                          color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.grey[<span class="pl-c1">400</span>],
                        ),
                      ),
                    ],
                  ),
                );
              }
            },
          ), <span class="pl-c">// ListView.builder ends here.</span>
        ),
      ),
    );
  }
}</pre></div>
<p dir="auto">globals.dart</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="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();"><pre class="notranslate"><span class="pl-k">library</span> my_app.globals;
<span class="pl-k">import</span> <span class="pl-s">'package:firebase_auth/firebase_auth.dart'</span>;
<span class="pl-k">import</span> <span class="pl-s">'package:firebase_database/firebase_database.dart'</span>;

<span class="pl-k">final</span> <span class="pl-c1">FirebaseAuth</span> auth <span class="pl-k">=</span> <span class="pl-c1">FirebaseAuth</span>.instance;
<span class="pl-k">final</span> <span class="pl-c1">DatabaseReference</span> databaseReference <span class="pl-k">=</span> <span class="pl-c1">FirebaseDatabase</span>.instance.<span class="pl-en">reference</span>();</pre></div>
<p dir="auto">addnewbranch.dart</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="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&lt;StatefulWidget&gt; createState() {
    return new _AddNewBranchState();
  }
}

class _AddNewBranchState extends State&lt;AddNewBranch&gt; {
  String actionsString = 'Next';
  String userUid;

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

  final GlobalKey&lt;FormState&gt; _formKey = new GlobalKey&lt;FormState&gt;();
  final GlobalKey&lt;ScaffoldState&gt; _scaffoldKey = new GlobalKey&lt;ScaffoldState&gt;();
  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&lt;Null&gt; 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: (_) =&gt; new Branches(),
                ),
              );
            }),
          ),
          actions: &lt;Widget&gt;[
            new Center(
              child: new Column(
                mainAxisAlignment: MainAxisAlignment.center,
                mainAxisSize: MainAxisSize.min,
                children: &lt;Widget&gt;[
                  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({
                        &quot;branchName&quot;: branchSetupModel.branchName,
                        &quot;hostelType&quot;: branchSetupModel.hostelType,
                        &quot;area&quot;: branchSetupModel.area,
                        &quot;city&quot;: branchSetupModel.city,
                        &quot;pushKey&quot;: pushKey
                      });
                      Navigator.push(
                        context,
                        new MaterialPageRoute(
                          builder: (_) =&gt; new Branches(),
                        ),
                      );
                    },
                    splashColor: const Color(0xFF229E9C),
                  ),
                ],
              ),
            ),
          ],
        ),
        body: new Form(
          key: _formKey,
          child: new ListView(
            children: &lt;Widget&gt;[
              new Container(
                margin: const EdgeInsets.only(left: 16.0, right: 16.0),
                child: new Row(
                  children: &lt;Widget&gt;[
                    new Text('Hostel Type'),
                  ],
                ),
              ),
              new Container(
                //height: 56.0,
                margin: const EdgeInsets.only(left: 16.0, right: 16.0),
                child: new Column(
                  children: &lt;Widget&gt;[
                    new DropdownButton&lt;String&gt;(
                      //key: _dropDownKey,
                      hint: new Text(dropDownvalue),

                      items: &lt;String&gt;[
                        'Mens',
                        'Womens',
                      ].map(
                        (String value) {
                          return new DropdownMenuItem&lt;String&gt;(
                            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: &lt;Widget&gt;[
                    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: &lt;Widget&gt;[
                    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: &lt;Widget&gt;[
                    new Expanded(
                      child: new TextField(
                        decoration: new InputDecoration(
                          labelText: 'City',
                        ),
                        controller: _cityController,
                        onChanged: (String value) {
                          branchSetupModel.city = value;
                        },
                      ),
                    ),
                  ],
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'dart:async'</span>;
<span class="pl-k">import</span> <span class="pl-s">'package:meta/meta.dart'</span>;
<span class="pl-k">import</span> <span class="pl-s">'package:firebase_auth/firebase_auth.dart'</span>;
<span class="pl-k">import</span> <span class="pl-s">'package:flutter/material.dart'</span>;
<span class="pl-k">import</span> <span class="pl-s">'package:flutter/rendering.dart'</span>;
<span class="pl-k">import</span> <span class="pl-s">'package:flutter/widgets.dart'</span>;
<span class="pl-k">import</span> <span class="pl-s">'package:untitled1/main.dart'</span>;
<span class="pl-k">import</span> <span class="pl-s">'./globals.dart'</span> <span class="pl-k">as</span> gl;

<span class="pl-k">class</span> <span class="pl-c1">BranchSetupModel</span> {
  <span class="pl-c1">String</span> branchName;
  <span class="pl-c1">String</span> hostelType;
  <span class="pl-c1">String</span> area;
  <span class="pl-c1">String</span> city;
  <span class="pl-c1">BranchSetupModel</span>(<span class="pl-c1">this</span>.branchName, <span class="pl-c1">this</span>.hostelType, <span class="pl-c1">this</span>.area, <span class="pl-c1">this</span>.city);
}

<span class="pl-c1">BranchSetupModel</span> branchSetupModel <span class="pl-k">=</span>
    <span class="pl-k">new</span> <span class="pl-c1">BranchSetupModel</span>(<span class="pl-s">''</span>, <span class="pl-s">'Hostel Type'</span>, <span class="pl-s">''</span>, <span class="pl-s">''</span>);

<span class="pl-k">class</span> <span class="pl-c1">AddNewBranch</span> <span class="pl-k">extends</span> <span class="pl-c1">StatefulWidget</span> {
  <span class="pl-k">const</span> <span class="pl-c1">AddNewBranch</span>({<span class="pl-c1">Key</span> key}) <span class="pl-k">:</span> <span class="pl-c1">super</span>(key<span class="pl-k">:</span> key);

  <span class="pl-k">@override</span>
  <span class="pl-c1">State</span>&lt;<span class="pl-c1">StatefulWidget</span>&gt; <span class="pl-en">createState</span>() {
    <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">_AddNewBranchState</span>();
  }
}

<span class="pl-k">class</span> <span class="pl-c1">_AddNewBranchState</span> <span class="pl-k">extends</span> <span class="pl-c1">State</span>&lt;<span class="pl-c1">AddNewBranch</span>&gt; {
  <span class="pl-c1">String</span> actionsString <span class="pl-k">=</span> <span class="pl-s">'Next'</span>;
  <span class="pl-c1">String</span> userUid;

  <span class="pl-c1">TextEditingController</span> _branchNameController <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">TextEditingController</span>();
  <span class="pl-c1">TextEditingController</span> _areaController <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">TextEditingController</span>();
  <span class="pl-c1">TextEditingController</span> _cityController <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">TextEditingController</span>();

  <span class="pl-k">final</span> <span class="pl-c1">GlobalKey</span>&lt;<span class="pl-c1">FormState</span>&gt; _formKey <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">GlobalKey</span>&lt;<span class="pl-c1">FormState</span>&gt;();
  <span class="pl-k">final</span> <span class="pl-c1">GlobalKey</span>&lt;<span class="pl-c1">ScaffoldState</span>&gt; _scaffoldKey <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">GlobalKey</span>&lt;<span class="pl-c1">ScaffoldState</span>&gt;();
  <span class="pl-c1">bool</span> _formWasEdited <span class="pl-k">=</span> <span class="pl-c1">false</span>;
  <span class="pl-c1">bool</span> _autovalidate <span class="pl-k">=</span> <span class="pl-c1">false</span>;
  <span class="pl-c1">String</span> dropDownvalue <span class="pl-k">=</span> <span class="pl-s">'Hostel Type'</span>;

  <span class="pl-c">//FocusNode _branchManagerNameFocusNode = new FocusNode();</span>

  <span class="pl-c1">String</span> <span class="pl-en">_validateName</span>(<span class="pl-c1">String</span> value) {
    _formWasEdited <span class="pl-k">=</span> <span class="pl-c1">true</span>;
    <span class="pl-k">if</span> (value.isEmpty) <span class="pl-k">return</span> <span class="pl-s">'Name is required.'</span>;
    <span class="pl-k">final</span> <span class="pl-c1">RegExp</span> nameExp <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">RegExp</span>(<span class="pl-s">r'^[A-Za-z ]+$'</span>);
    <span class="pl-k">if</span> (<span class="pl-k">!</span>nameExp.<span class="pl-en">hasMatch</span>(value))
      <span class="pl-k">return</span> <span class="pl-s">'Please enter only alphabetical characters and spaces.'</span>;
    <span class="pl-k">return</span> <span class="pl-c1">null</span>;
  }

  <span class="pl-c1">Future</span>&lt;<span class="pl-c1">Null</span>&gt; <span class="pl-en">getUserUid</span>() <span class="pl-k">async</span> {
    <span class="pl-k">try</span> {
      <span class="pl-c1">FirebaseUser</span> user <span class="pl-k">=</span> <span class="pl-k">await</span> <span class="pl-c1">FirebaseAuth</span>.instance.<span class="pl-en">currentUser</span>();
      userUid <span class="pl-k">=</span> user.uid;
      <span class="pl-en">print</span>(userUid);
    } <span class="pl-k">catch</span> (<span class="pl-c1">Exception</span>) {
      <span class="pl-en">print</span>(<span class="pl-c1">Exception</span>.<span class="pl-en">toString</span>());
    }
  }

  <span class="pl-k">@override</span>
  <span class="pl-k">void</span> <span class="pl-en">initState</span>() {
    <span class="pl-c1">super</span>.<span class="pl-en">initState</span>();
    <span class="pl-en">getUserUid</span>();
    _branchNameController <span class="pl-k">=</span>
        <span class="pl-k">new</span> <span class="pl-c1">TextEditingController</span>(text<span class="pl-k">:</span> branchSetupModel.branchName);
    _areaController <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">TextEditingController</span>(text<span class="pl-k">:</span> branchSetupModel.area);
    _cityController <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">TextEditingController</span>(text<span class="pl-k">:</span> branchSetupModel.city);
    dropDownvalue <span class="pl-k">=</span> branchSetupModel.hostelType;
    branchSetupModel <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">BranchSetupModel</span>(<span class="pl-s">''</span>, <span class="pl-s">'Hostel Type'</span>, <span class="pl-s">''</span>, <span class="pl-s">''</span>);
  }

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

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

                      items<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">String</span><span class="pl-k">&gt;</span>[
                        <span class="pl-s">'Mens'</span>,
                        <span class="pl-s">'Womens'</span>,
                      ].<span class="pl-en">map</span>(
                        (<span class="pl-c1">String</span> value) {
                          <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">DropdownMenuItem</span>&lt;<span class="pl-c1">String</span>&gt;(
                            value<span class="pl-k">:</span> value,
                            child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Text</span>(value),
                          );
                        },
                      ).<span class="pl-en">toList</span>(),
                      onChanged<span class="pl-k">:</span> (<span class="pl-c1">String</span> value) {
                        <span class="pl-en">setState</span>(() {
                          dropDownvalue <span class="pl-k">=</span> value;
                          branchSetupModel.hostelType <span class="pl-k">=</span> value;
                          <span class="pl-en">print</span>(branchSetupModel.hostelType);
                        });
                      },
                    ),
                  ],
                ),
              ),
              <span class="pl-k">new</span> <span class="pl-c1">Container</span>(
                margin<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">only</span>(left<span class="pl-k">:</span> <span class="pl-c1">16.0</span>, right<span class="pl-k">:</span> <span class="pl-c1">16.0</span>),
                child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Row</span>(
                  children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[
                    <span class="pl-k">new</span> <span class="pl-c1">Expanded</span>(
                      child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">TextField</span>(
                        autocorrect<span class="pl-k">:</span> <span class="pl-c1">false</span>,
                        decoration<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">InputDecoration</span>(
                          labelText<span class="pl-k">:</span> <span class="pl-s">'Branch Name'</span>,
                        ),
                        controller<span class="pl-k">:</span> _branchNameController,
                        onChanged<span class="pl-k">:</span> (<span class="pl-c1">String</span> value) {
                          branchSetupModel.branchName <span class="pl-k">=</span>
                              _branchNameController.text;
                          <span class="pl-en">print</span>(branchSetupModel.branchName);
                        },
                        <span class="pl-c">//validator: _validateName,</span>
                      ),
                    ),
                  ],
                ),
              ),
              <span class="pl-k">new</span> <span class="pl-c1">Container</span>(
                margin<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">only</span>(left<span class="pl-k">:</span> <span class="pl-c1">16.0</span>, right<span class="pl-k">:</span> <span class="pl-c1">16.0</span>),
                child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Row</span>(
                  children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[
                    <span class="pl-k">new</span> <span class="pl-c1">Expanded</span>(
                      child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">TextField</span>(
                        decoration<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">InputDecoration</span>(
                          labelText<span class="pl-k">:</span> <span class="pl-s">'Area/Location'</span>,
                        ),
                        controller<span class="pl-k">:</span> _areaController,
                        onChanged<span class="pl-k">:</span> (<span class="pl-c1">String</span> value) {
                          branchSetupModel.area <span class="pl-k">=</span> value;
                          <span class="pl-en">print</span>(branchSetupModel.area);
                        },
                        <span class="pl-c">//validator: _validateName,</span>
                      ),
                    ),
                  ],
                ),
              ),
              <span class="pl-k">new</span> <span class="pl-c1">Container</span>(
                margin<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">only</span>(
                  left<span class="pl-k">:</span> <span class="pl-c1">16.0</span>,
                  right<span class="pl-k">:</span> <span class="pl-c1">16.0</span>,
                ),
                child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Row</span>(
                  children<span class="pl-k">:</span> <span class="pl-k">&lt;</span><span class="pl-c1">Widget</span><span class="pl-k">&gt;</span>[
                    <span class="pl-k">new</span> <span class="pl-c1">Expanded</span>(
                      child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">TextField</span>(
                        decoration<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">InputDecoration</span>(
                          labelText<span class="pl-k">:</span> <span class="pl-s">'City'</span>,
                        ),
                        controller<span class="pl-k">:</span> _cityController,
                        onChanged<span class="pl-k">:</span> (<span class="pl-c1">String</span> value) {
                          branchSetupModel.city <span class="pl-k">=</span> value;
                        },
                      ),
                    ),
                  ],
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
</pre></div>
<p dir="auto">pubspec.yaml</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="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"><pre class="notranslate"><span class="pl-ent">name</span>: <span class="pl-s">untitled1</span>
<span class="pl-ent">description</span>: <span class="pl-s">A new Flutter project.</span>

<span class="pl-ent">dependencies</span>:
  <span class="pl-ent">flutter</span>:
    <span class="pl-ent">sdk</span>: <span class="pl-s">flutter</span>
  <span class="pl-ent">google_sign_in</span>: <span class="pl-s">^1.0.1</span>
  <span class="pl-ent">firebase_analytics</span>: <span class="pl-s">^0.1.1</span>
  <span class="pl-ent">firebase_auth</span>: <span class="pl-s">^0.3.1</span>
  <span class="pl-ent">firebase_database</span>: <span class="pl-s">^0.1.2</span>
  <span class="pl-ent">firebase_storage</span>: <span class="pl-s">^0.0.7</span>


<span class="pl-ent">dev_dependencies</span>:
  <span class="pl-ent">flutter_test</span>:
    <span class="pl-ent">sdk</span>: <span class="pl-s">flutter</span>


<span class="pl-c"><span class="pl-c">#</span> For information on the generic Dart part of this file, see the</span>
<span class="pl-c"><span class="pl-c">#</span> following page: https://www.dartlang.org/tools/pub/pubspec</span>

<span class="pl-c"><span class="pl-c">#</span> The following section is specific to Flutter.</span>
<span class="pl-ent">flutter</span>:

  <span class="pl-c"><span class="pl-c">#</span> The following line ensures that the Material Icons font is</span>
  <span class="pl-c"><span class="pl-c">#</span> included with your application, so that you can use the icons in</span>
  <span class="pl-c"><span class="pl-c">#</span> the material Icons class.</span>
  <span class="pl-ent">uses-material-design</span>: <span class="pl-c1">true</span></pre></div>
<p dir="auto">**_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.</p>
<p dir="auto">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 <code class="notranslate">RangeError (index): Invalid value: Valid value range is empty: 0</code> this error is for the <code class="notranslate">ListView.builder()</code> and then the other two assertion errors come up.</p>
<p dir="auto">Please can someone tell me what I am doing wrong or is there a different way to achieve the same goal without these errors._**</p>
<h2 dir="auto">Logs</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="══╡ 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.&lt;anonymous closure&gt; (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.&lt;anonymous closure&gt; (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&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:580:20)
I/flutter ( 5120): #245    BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:200:5)
I/flutter ( 5120): #246    BindingBase&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:713:15)
I/flutter ( 5120): #247    BindingBase&amp;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&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:580:20)
I/flutter ( 5120): #102    BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:200:5)
I/flutter ( 5120): #103    BindingBase&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:713:15)
I/flutter ( 5120): #104    BindingBase&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:649:9)
I/flutter ( 5120): #105    BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding.scheduleWarmUpFrame.&lt;anonymous closure&gt; (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."><pre class="notranslate"><code class="notranslate">══╡ 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.&lt;anonymous closure&gt; (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.&lt;anonymous closure&gt; (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&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:580:20)
I/flutter ( 5120): #245    BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:200:5)
I/flutter ( 5120): #246    BindingBase&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:713:15)
I/flutter ( 5120): #247    BindingBase&amp;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&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:580:20)
I/flutter ( 5120): #102    BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:200:5)
I/flutter ( 5120): #103    BindingBase&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:713:15)
I/flutter ( 5120): #104    BindingBase&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:649:9)
I/flutter ( 5120): #105    BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding.scheduleWarmUpFrame.&lt;anonymous closure&gt; (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.
</code></pre></div>
<h2 dir="auto">Flutter Doctor</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[√] 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"><pre class="notranslate"><code class="notranslate">[√] 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
</code></pre></div>
<blockquote>
<p dir="auto">For more information about diagnosing and reporting Flutter bugs, please see <a href="https://flutter.io/bug-reports/" rel="nofollow">https://flutter.io/bug-reports/</a>.</p>
</blockquote>
<p dir="auto">We'd like to report the version of Dart we embed into the engine when the user runs <code class="notranslate">flutter --version</code>.</p>