import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: Text("Hello World Niluka"),
);
}
}
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
void main()
{
//main() function body
}
void main(List<String> arguments /* optional */) {
// ...
}