mobileapplicationPassvault/lib/custom_widgets/horizontal_line.dart

26 lines
645 B
Dart
Raw Normal View History

2024-04-12 05:23:32 +00:00
import 'package:flutter/material.dart';
class TextWithHorizontalLine extends StatelessWidget {
final String text;
const TextWithHorizontalLine({super.key, required this.text});
@override
Widget build(BuildContext context) {
return Stack(
alignment: Alignment.center,
children: [
Text(
text,
style: const TextStyle(fontSize: 12),
), // Change font size as needed
const Divider(
height: 0,
thickness: 2, // Adjust the thickness of the line as needed
color: Colors.black, // Change the color of the line as needed
),
],
);
}
}