getting started with flutter code example
Example 1: flutter main example
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Welcome to Flutter',
home: Scaffold(
appBar: AppBar(
title: Text('Welcome to Flutter'),
),
body: Center(
child: Text('Hello World'),
),
),
);
}
}
Example 2: flutter create new app
flutter create myapp
Example 3: make new flutter project
flutter create -i swift -a kotlin --org com.yourdomain app_name