import 'package:energy_bilance/widgets/ExpandedNumberInputWidget.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import '../models/EnergyBilanceModel.dart'; class MyInputWidget extends StatelessWidget { const MyInputWidget({super.key}); @override Widget build(BuildContext context) { final model = Provider.of(context); return Column( children: [ Row( mainAxisSize: MainAxisSize.min, mainAxisAlignment: MainAxisAlignment.start, children: [ ExpandedNumberInputWidget("Anfangsgeschwindigkeit", "in m/s", model.setStartVelocity), ExpandedNumberInputWidget("Endgeschwindigkeit", "in m/s", model.setEndVelocity) ], ), Row( mainAxisSize: MainAxisSize.max, mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ ExpandedNumberInputWidget("Anfangshöhe", "in m", model.setStartHeight), ExpandedNumberInputWidget("Endhöhe", "in m", model.setEndHeight), ], ), ExpandedNumberInputWidget("Gewicht", "in kg", model.setWeight), ] ); } }