cpd_2022_energy/lib/widgets/output_card_widget.dart

19 lines
535 B
Dart

import 'package:cpd_2022_energy/provider/energy_model.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
class OutputCardWidget extends StatelessWidget {
const OutputCardWidget({super.key});
@override
Widget build(BuildContext context) {
return Consumer<EnergyModel>(
builder: (context, model, child) => Card(
child: Column(children: const <Widget>[
Text('Joule:'),
Text('Water:'),
Text('Iron'),
])));
}
}