Flutter Tutorials

Flutter app development tutorials


flutter – Column full width

main.dart


import 'package:flutter/material.dart';

void main() {
  runApp(
      MaterialApp(
          theme: ThemeData(primarySwatch: Colors.green),
          home: Scaffold(
              appBar: AppBar(
                  title: const Text("Flutter - Column Full Width")
              ),
              body: bodyContent()
          )
      )
  );
}

bodyContent(){
  return SizedBox(
      width: double.infinity,
      child: Column(
          children: const [
            Text("I am a text."),
            Text("I am another text.")
          ]
      )
  );
}

More flutter tutorials



About Me

Flutter Developer

Design a site like this with WordPress.com
Get started