Polish 20201030 174724498 01
October 30, 2020

Flutter Lesson 1 – What is the Concept of Flutter Widgets?

By Zexon-dev

Flutter has some essentials to learn when we’re introduction to widgets. Let’s briefly address these first.

What are Flutter Widgets?

To briefly explain the widget structure, the entire flutter is almost made up of widgets. Why Flutter? Flutter Setup and Programming Logic As I mentioned, it’s all actually nested logic. This intertwined logic allows us to do direct result-oriented processing, not memorization.Now let‘s take a look through Visual Studio Code.


Flutter Widgets Example:

I created a new content with Ctrl+shift+p combinations and named it widgets.

Notice that the first letter when you create the file has to be small because the flutter is case sensitive. He’ll warn you if you overest his initials. I deleted it all here after the main code.

Flutter Widgets

Flutter Widgets  Visual Studio Code


If you look at the places where I marked the opening screen with Yellow in this way, the widget that was found in the first place is actually the way I wrote it (widget) which is why visual studio code is seen as such. The second yellow part is the part where we do the Lib filing. Custom files are created where necessary.

flutter lessons

Futter Stateless Widget

There may have been some places here that you don’t know, and if you listen to the lessons that will sit over time, you can become a professional mobile app developer and make the app you want.


Flutter was made up of widgets, as mentioned above. The other widgets consisted of 2 main widgets. (inheritance).

  • Stateless Widgets
  • Stateful Widgets

What are Flutter Stateless Widgets?

Stateless Widgets, if necessary, to be precise. It is used on fixed pages that do not function when you call it, which is not heavy load.

For example:IconIconButton, and  Text . The code structure is as follows.

See Flutter Stateless Widget | Flutter.dev

import 'package:flutter/material.dart';

void main() {
  runApp(Widgetstry());//is incorrect Use
}

class Widgetstry extends StatelessWidget {
  const widgetstry({Key key}) : super(key: key);

@override
  Widget build(BuildContext context) {
    return Container(
    );
  }
}

What is Flutter Stateful Widget?

Unlike the Stateless widget, we use Statefull in situations that require more intense work and movement. Data alama data pull, user action, etc.

For example : CheckboxRadioSliderInkWellForm, ve TextField are used.

flutter lessons

Flutter Statefull Widget

The code example is as follows.

import 'package:flutter/material.dart';

void main() {
  runApp(Widgetstry());//is a misuse
}

class Widgetstry extends StatefulWidget {
  widgetstry({Key key}) : super(key: key);

@override
  _WidgetstryState createState() => _WidgetstryState();
}

class _WidgetstryState extends State {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(

),
    );
  }
}

I’m putting in a video to better understand Flutterda Widgets. (St. U.S.A.)