Skip to content

Instantly share code, notes, and snippets.

@gabrielgatu
Created November 20, 2021 16:28
Show Gist options
  • Select an option

  • Save gabrielgatu/89efb9d7cb3aff09496f34dd81a5adb4 to your computer and use it in GitHub Desktop.

Select an option

Save gabrielgatu/89efb9d7cb3aff09496f34dd81a5adb4 to your computer and use it in GitHub Desktop.
Flutter2Start - Column e Row #flutter2start
// ignore_for_file: use_key_in_widget_constructors, prefer_const_constructors, prefer_const_literals_to_create_immutables
import 'package:flutter/material.dart';
void main() {
runApp(App());
}
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text("Flutter2Start"),
),
body: Center(child: body()),
),
);
}
Widget body() => Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
mainAxisSize: MainAxisSize.max,
children: [
Text("Riga 1"),
Text("Riga 2"),
Text("Riga 3"),
],
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment