Flutter

Flutter UI #1: Introduction to widgets

Nilen Patel 1 min read

Flutter widgets are built utilizing a modern framework that takes inspiration from React. The central conception is that you build your user interface out of widgets. Widgets describe what their view should look homogeneous to given their current configuration and verbalize.

Hello world

import 'package:flutter/material.dart';

void main() {
  runApp(
    const Center(
      child: Text(
        'Hello, world!',
        textDirection: TextDirection.ltr,
      ),
    ),
  );
}

Basics widgets of Flutter

  • Text
  • Row, Column
  • Stack
  • Container

Leave a Comment

Your email address will not be published. Required fields are marked *