26 lines
645 B
Dart
26 lines
645 B
Dart
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
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|