Row Widget
Project Preview
- Interested in seeing the live demo? Click here to explore.
- Want to view the source code? Visit the project on GitHub.
Code Snippet
import 'package:flutter/material.dart';
class RowWidget extends StatelessWidget {
const RowWidget({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.black,
appBar: AppBar(
title: const Text("Row Widget"),
),
body: SizedBox(
height: double.infinity,
width: double.infinity,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Row(
children: [
Expanded(
child: ElevatedButton(
onPressed: () {},
child: const Text('Click'),
),
)
],
),
const SizedBox(height: 10),
Row(
children: [
Expanded(
child: ElevatedButton(
onPressed: () {},
child: const Text('Click'),
),
),
Expanded(
child: ElevatedButton(
onPressed: () {},
child: const Text('Click'),
),
),
],
),
const SizedBox(height: 10),
Row(
children: [
Expanded(
child: ElevatedButton(
onPressed: () {},
child: const Text('Click'),
),
),
Expanded(
child: ElevatedButton(
onPressed: () {},
child: const Text('Click'),
),
),
Expanded(
child: ElevatedButton(
onPressed: () {},
child: const Text('Click'),
),
),
],
),
],
),
),
);
}
}