Skip to content

Instantly share code, notes, and snippets.

@Arpit723
Created July 23, 2025 14:23
Show Gist options
  • Select an option

  • Save Arpit723/13eb15d0b272ff0d6e72c48c474c66bb to your computer and use it in GitHub Desktop.

Select an option

Save Arpit723/13eb15d0b272ff0d6e72c48c474c66bb to your computer and use it in GitHub Desktop.
Column Layout Study
import 'dart:ffi';
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
backgroundColor: Colors.teal,
body: SafeArea(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Container(
child: Text("1"),
color: Colors.red,
width: 100.0,
height: double.infinity,
),
Container(
child: Column(children: [ Container(
child: Text("3"),
color: Colors.yellow,
width: 100.0,
height: 100.0,
), Container(
child: Text("4"),
color: Colors.green,
width: 100.0,
height: 100.0,
)],),
color: Colors.blue,
height: 200.0,
width: 100.0,
),
Container(
child: Text("3"),
color: Colors.blue,
width: 100.0,
height: double.infinity,
)
],
),
),
),
);
}
}
@Arpit723
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment