import 'package:flutter/material.dart'; import 'package:thesis_shop/stores/cart_store.dart'; class TotalPriceText extends StatelessWidget { const TotalPriceText({Key? key}) : super(key: key); @override Widget build(BuildContext context) { final cartStore = CartStore.of(context); return SafeArea( child: Padding( padding: const EdgeInsets.all(8.0), child: Text( 'Gesamtpreis: ${cartStore.totalPriceAsText}€', style: Theme.of(context).textTheme.labelLarge?.copyWith(fontSize: 24), ), ), ); } }