Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- void main() {
- runApp(const MyApp());
- }
- class MyApp extends StatelessWidget {
- const MyApp({Key? key}) : super(key: key);
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- title: 'Hello App',
- home: Scaffold(
- appBar: AppBar(
- title: const Text('Hello'),
- ),
- body: Center(
- child: Row(mainAxisAlignment: MainAxisAlignment.center, children: [
- Container(
- decoration: BoxDecoration(border: Border.all()),
- padding: const EdgeInsets.all(14),
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- Expanded(
- child: Container(
- decoration: BoxDecoration(border: Border.all()),
- padding: const EdgeInsets.all(14),
- child: Text('Hello World 1a')),
- ),
- Container(
- decoration: BoxDecoration(border: Border.all()),
- padding: const EdgeInsets.all(14),
- child: const Text('Hello World 1b')),
- ])),
- ]),
- ),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement