I started learning flutter with Angela.
My aim is to make a bluetooth app.
'Material app()'.
It will be something that conforms to the material design pattern. And material design is simply just a design style or a concept that was created by Google and a lot of startups and a lot of companies have adopted it for their websites and mobile apps. And by using Flutter, we get to tap into a lot of these material components, through the use of Flutter widgets. And we're going to see the power of these widgets and how we can incorporate these designs in, almost automatically, very very soon in this module.
If we go ahead and say that in our Material App, in the home of the app, what we want to see is simply a text widget and this text widget just says hello world. if we go ahead and actually run this app, then you can see our text show up inside our Matrial App. But at the moment, it doesn't look great right. It's just a black screen with some red text But it does say what we wanted to say, which is hello world.
We've really started building our widget tree, and it's a really simple one.
It's only got two widgets. The first or the parent widget, is the Material App, and almost all of your Flutter apps will start off with this as the first widget.
Add a comma to the end of all of round bracckets. And that means that when I hit save, or when I right click and click on reformat code with dartfmt, then it'll automatically turn
Main is the starting point of all of apps. Now in order to make indented structure look even more organized, we can actually replace this so-called fat Arrow or what's a = and > with a set of curly braces. So we can change that into a curly brace at the beginning, and a curly brace right at the end
'개발정보 > Flutter' 카테고리의 다른 글
flutter_svg: ^0.22.0 (0) | 2021.07.19 |
---|---|
Error: Cannot run with sound null safety, because the following dependencies (0) | 2021.07.19 |
What's the difference between 'Final'variable and 'Const'variable? (0) | 2021.06.29 |
Class constructors (0) | 2020.12.30 |
02_Scaffolding a Flutter App (0) | 2020.12.15 |
댓글