Consider to google the widgets! 🙂


1. MaterialApp

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'My App',
      home: HomeScreen(),
    );
  }
}


2. Scaffold

Scaffold(
  appBar: AppBar(title: Text('App Bar Title')),
  body: Center(child: Text('Hello, World!')),
)


3. AppBar

AppBar(
  title: Text('App Bar Title'),
  actions: [
    IconButton(icon: Icon(Icons.search), onPressed: () {}),
  ],
)


4. Text

Text('Hello, World!', style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold))


5. Column and Row

Column(
  children: [
    Text('Item 1'),
    Text('Item 2'),
  ],
)

Row(
  children: [
    Icon(Icons.star),
    Text('Star'),
  ],
)


6. Container

Container(
  padding: EdgeInsets.all(10),
  color: Colors.blue,
  child: Text('Inside Container'),
)