parent
0b69d37074
commit
f23481e4bd
@ -0,0 +1,27 @@ |
|||||||
|
import 'package:flutter/material.dart'; |
||||||
|
|
||||||
|
class CartItemList extends StatelessWidget { |
||||||
|
const CartItemList({Key? key}) : super(key: key); |
||||||
|
|
||||||
|
@override |
||||||
|
Widget build(BuildContext context) { |
||||||
|
return DefaultTextStyle.merge( |
||||||
|
style: const TextStyle(fontSize: 16, height: 2.5), |
||||||
|
child: Padding( |
||||||
|
padding: const EdgeInsets.all(16.0), |
||||||
|
child: Table( |
||||||
|
columnWidths: const { |
||||||
|
0: FlexColumnWidth(), |
||||||
|
1: FixedColumnWidth(128), |
||||||
|
2: IntrinsicColumnWidth(), |
||||||
|
}, |
||||||
|
children: const [ |
||||||
|
TableRow(children: [Text('Äpfel'), Text('3x3€'), Text('9€')]), |
||||||
|
TableRow(children: [Text('Äpfel'), Text('3x3€'), Text('9€')]), |
||||||
|
TableRow(children: [Text('Äpfel'), Text('3x3€'), Text('9€')]) |
||||||
|
], |
||||||
|
), |
||||||
|
), |
||||||
|
); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,18 @@ |
|||||||
|
import 'package:flutter/material.dart'; |
||||||
|
|
||||||
|
class TotalPriceText extends StatelessWidget { |
||||||
|
const TotalPriceText({Key? key}) : super(key: key); |
||||||
|
|
||||||
|
@override |
||||||
|
Widget build(BuildContext context) { |
||||||
|
return SafeArea( |
||||||
|
child: Padding( |
||||||
|
padding: const EdgeInsets.all(8.0), |
||||||
|
child: Text( |
||||||
|
'Gesamtpreis: 27€', |
||||||
|
style: Theme.of(context).textTheme.labelLarge?.copyWith(fontSize: 24), |
||||||
|
), |
||||||
|
), |
||||||
|
); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue