File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments