removed unnecessary code
This commit is contained in:
@@ -23,20 +23,6 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
_selectedIndex = index;
|
_selectedIndex = index;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
int _counter = 0;
|
|
||||||
|
|
||||||
void _incrementCounter() {
|
|
||||||
setState(() {
|
|
||||||
// This call to setState tells the Flutter framework that something has
|
|
||||||
// changed in this State, which causes it to rerun the build method below
|
|
||||||
// so that the display can reflect the updated values. If we changed
|
|
||||||
// _counter without calling setState(), then the build method would not be
|
|
||||||
// called again, and so nothing would appear to happen.
|
|
||||||
_counter++;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
void setLogin(bool value) {
|
void setLogin(bool value) {
|
||||||
setState(() {
|
setState(() {
|
||||||
login = value;
|
login = value;
|
||||||
|
|||||||
Reference in New Issue
Block a user