Flutter creating Stateful Widget

Flutter creating Stateful Widget

Mobile Application Tutorials

6 лет назад

2,336 Просмотров

This flutter tutorial describes how to create a Stateful Widget.
A Stateful widget is one whose properties can be modified and changed.

All the steps will be done using AndroidStudio 3.1.

This flutter development tutorial will include:
1. Setting up the StateFulWidget
2. Creating mutable states for widgets

For business inquiries, you can contact me at my site https://goo.gl/oYB4Ln
For any technical questions I provide paid consultancy here https://www.codementor.io/mobapptuts
Members of the professional plan can also post questions on the forum here https://goo.gl/85APgY

Site Series: https://goo.gl/CP7TzW
YouTube Playlist:

For questions, training and consultancy support I can be contacted here https://goo.gl/HEZsX1

For much more information check out

Website - https://www.mobapptuts.com
Codementor - https://www.codementor.io/mobapptuts
Twitter - https://twitter.com/MobAppTuts
Facebook - https://www.facebook.com/nigeapptuts
Google+ - https://plus.google.com/b/115884642086760882044
Pinterest - https://www.pinterest.com/mobapptuts/

Тэги:

#flutter #flutterio #dartio #development #tutorial #How-to #stateful #widget
Ссылки и html тэги не поддерживаются


Комментарии:

Axel Life
Axel Life - 18.12.2018 06:21

This is an incomplete tutorial. Almost equal to the text written in intro of stateful widget. no info

Ответить
João Peixoto
João Peixoto - 07.11.2018 15:25

sorry, but this is the worst example to build an StatefulWidget. You can do this example doing StatelessWidget:
class FirstApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
final wordPair = new WordPair.random();
return MaterialApp(
title: 'hello world',
home: new Scaffold(
appBar: AppBar(
title: new Text('helloada world'),
),
body: new Center(
child: new Text(wordPair.asPascalCase),
),
),
);
}
}


worst you don't mention how to install external package english_words, but you use it.
If someone is starting to learn flutter it will be very confused.

Ответить
Denis Volyntsev
Denis Volyntsev - 13.06.2018 07:52

What about setState? How does this work?

Ответить