Changed screen types to Stateful

This commit is contained in:
2023-12-19 16:02:29 +03:00
parent e6ad9ebf8a
commit a39fb847fe
14 changed files with 91 additions and 18 deletions

View File

@@ -8,7 +8,7 @@ import 'package:eatvio_app/widgets/custom_drop_down.dart';
import 'package:eatvio_app/widgets/custom_outlined_button.dart';
import 'package:flutter/material.dart';
class HeightScreen extends StatelessWidget {
class HeightScreen extends StatefulWidget {
const HeightScreen({Key? key}) : super(key: key);
static Widget builder(BuildContext context) {
@@ -19,6 +19,11 @@ class HeightScreen extends StatelessWidget {
child: HeightScreen());
}
@override
State<HeightScreen> createState() => _HeightScreenState();
}
class _HeightScreenState extends State<HeightScreen> {
@override
Widget build(BuildContext context) {
mediaQueryData = MediaQuery.of(context);
@@ -74,7 +79,7 @@ class HeightScreen extends StatelessWidget {
}
/// Section Widget
Widget _buildTwentySixWidget(BuildContext context) {
Widget _buildWeight(BuildContext context) {
return Column(children: [
Text("your_height".tr, style: theme.textTheme.bodyLarge),
SizedBox(height: 4.v),
@@ -106,7 +111,7 @@ class HeightScreen extends StatelessWidget {
return Column(children: [
Text("height_measurements".tr, style: theme.textTheme.headlineSmall),
SizedBox(height: 174.v),
_buildTwentySixWidget(context)
_buildWeight(context)
]);
}