Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Row in Column
- import 'package:flutter/material.dart';
- void main() => runApp(MaterialApp(
- home: Home(),
- ));
- class Home extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: Text(
- 'App bar',
- style: TextStyle(color: Colors.white),
- ),
- centerTitle: true,
- backgroundColor: Colors.red,
- ),
- body: Column(
- mainAxisAlignment : MainAxisAlignment.end,
- crossAxisAlignment : CrossAxisAlignment.start,
- children : <Widget>[
- Row(
- children : <Widget>[
- Text('Hello'),
- Text('World'),
- ],
- ),
- Container(
- padding : EdgeInsets.all(20.0),
- color : Colors.blue,
- child : Text('one'),
- ),
- Container(
- padding : EdgeInsets.all(30.0),
- color : Colors.green,
- child : Text('two'),
- ),
- Container(
- padding : EdgeInsets.all(40.0),
- color : Colors.orange,
- child : Text('three'),
- ),
- ],
- ),
- floatingActionButton: FloatingActionButton(
- child: Text('click me'),
- onPressed: null,
- backgroundColor: Colors.red,
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement