VerticalDivider 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 VerticalDividerWidget extends StatelessWidget {
const VerticalDividerWidget({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("VerticalDivider Widget"),
),
body: Padding(
padding: const EdgeInsets.all(50),
child: Row(
children: [
Expanded(
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: Colors.orangeAccent,
),
),
),
const VerticalDivider(
width: 40,
thickness: 1,
indent: 40,
endIndent: 100,
color: Colors.grey,
),
Expanded(
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: Colors.orangeAccent,
),
),
),
],
),
),
);
}
}