Skip to content

Commit d3d6774

Browse files
committed
Add Row price details widget.dart
1 parent 134e39b commit d3d6774

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import 'package:flutter/material.dart';
2+
3+
class RowPriceDetailsWidget extends StatelessWidget {
4+
final String title;
5+
final String price;
6+
final TextStyle titleTextStyle;
7+
final TextStyle priceTextStyle;
8+
const RowPriceDetailsWidget({
9+
required this.title,
10+
required this.price,
11+
required this.titleTextStyle,
12+
required this.priceTextStyle,
13+
Key? key,
14+
}) : super(key: key);
15+
16+
@override
17+
Widget build(BuildContext context) {
18+
return Row(
19+
mainAxisAlignment: MainAxisAlignment.spaceBetween,
20+
children: [
21+
Text(
22+
title,
23+
style: titleTextStyle,
24+
),
25+
Expanded(
26+
child: Text(
27+
price,
28+
textAlign: TextAlign.end,
29+
style: priceTextStyle,
30+
),
31+
),
32+
],
33+
);
34+
}
35+
}

0 commit comments

Comments
 (0)