Advertisement
AbiMulya

(Belajar Flutter) Row and Coloumn

Oct 6th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.83 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. void main() {
  4.   runApp(MyApp());
  5. }
  6.  
  7. class MyApp extends StatelessWidget {
  8.   // This widget is the root of your application.
  9.   @override
  10.   Widget build(BuildContext context) {
  11.     return MaterialApp(
  12.       home: Scaffold(
  13.         appBar: AppBar(
  14.           title: Text("Column and Row"),
  15.         ),
  16.         body: Column(
  17.           mainAxisAlignment: MainAxisAlignment.center,
  18.           crossAxisAlignment: CrossAxisAlignment.start,
  19.           children: <Widget>[
  20.             Text("Textt 1"),
  21.             Text("Textt 2"),
  22.             Text("Textt 3"),
  23.             Row(
  24.               children: <Widget>[
  25.                 Text("Textt 4"),
  26.                 Text("Textt 5"),
  27.                 Text("Textt 6"),
  28.               ],
  29.             )
  30.           ],
  31.         ),
  32.       ),
  33.     );
  34.   }
  35. }
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement