Create First Flutter Application: Flutter Dart

Create First Flutter Application: Flutter Dart

Create a simple flutter app

Replace the contents of lib/main.dart.

To import the flutter material

import 'package:flutter/material.dart';

Every Flutter app will contain

1. Main() it is the entry point of the application

2. The main function will return run app On run app will run an Widget.

                   runApp (Widget)

the center will display the content at center

void main() => runApp(
    Center(
         child:Text(
             'Welcome To Cloudstar'
             ,textDirection:TextDirection.ltr
        ),
    ),
);

Note:

ltr =>left to right
rtl => right to left

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s