TEXT - WRITING YOUR FIRST CODE IN FLUTTER

 Here is the code used in the video:

import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
   
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('This is the title'),
        ),
        body: const Column(
          children: [
            Text('This is the first line'),
            Text('This is the second line'),
            Text('This is the third line'),
          ],
        ),
      ),
    );
  }
}


No comments:

Post a Comment

Flutter and WebAssembly: A Powerful Combination for Web Development

 Introduction to Flutter and WebAssembly   Flutter, a popular open-source UI software development toolkit created by Google, has revolution...