import 'package:flutter/material.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Widgets Demo', home: Scaffold( appBar: AppBar(title: Text('Widgets Demo')), body: SingleChildScrollView( child: Column( children: [ // Center widget Center(child: Text('Welcome')), // Container widget Container(height: 200, width: 200, color: Colors.red), // InkWell widget InkWell( child: Container( width: 200, height: 200, color: Colors.orangeAccent, ), onTap: () { print('You clicked on the container'); }, ), // Row widget Row( mainAxisAlignment: MainAxisAlignment.center, children: [ Text('one '), Text('two '), Text('three '), Text('four '), Text('five '), Text('six'), ], ), // Column widget Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text('one '), Text('two '), Text('three '), Text('four '), Text('five '), Text('six'), ], ), ], ), ), ), ); } }