|
1 | 1 | import 'package:flutter/material.dart';
|
2 | 2 | import 'package:flutter_navigation_generator_annotations/flutter_navigation_generator_annotations.dart';
|
3 | 3 | import 'package:flutter_template/di/injectable.dart';
|
4 |
| -import 'package:flutter_template/styles/theme_dimens.dart'; |
5 | 4 | import 'package:flutter_template/util/keys.dart';
|
6 | 5 | import 'package:flutter_template/viewmodel/login/login_viewmodel.dart';
|
7 | 6 | import 'package:flutter_template/widget/general/simple_screen/base_screen.dart';
|
@@ -29,32 +28,32 @@ class LoginScreenState extends State<LoginScreen> {
|
29 | 28 | consumerWithThemeAndLocalization: (context, viewModel, child, theme, localization) => BaseScreen(
|
30 | 29 | showHeader: false,
|
31 | 30 | children: [
|
32 |
| - Container(height: ThemeDimens.padding16), |
| 31 | + Container(height: 16), |
33 | 32 | Text(
|
34 | 33 | 'Login',
|
35 | 34 | style: theme.coreTextTheme.titleNormal,
|
36 | 35 | textAlign: TextAlign.center,
|
37 | 36 | ),
|
38 |
| - Container(height: ThemeDimens.padding32), |
| 37 | + Container(height: 32), |
39 | 38 | Text(
|
40 | 39 | 'Just fill in some text. There is no validator for the login',
|
41 | 40 | style: theme.coreTextTheme.labelButtonSmall,
|
42 | 41 | ),
|
43 |
| - Container(height: ThemeDimens.padding32), |
| 42 | + Container(height: 32), |
44 | 43 | FlutterTemplateInputField(
|
45 | 44 | key: Keys.emailInput,
|
46 | 45 | enabled: !viewModel.isLoading,
|
47 | 46 | onChanged: viewModel.onEmailUpdated,
|
48 | 47 | hint: 'Email',
|
49 | 48 | ),
|
50 |
| - Container(height: ThemeDimens.padding16), |
| 49 | + Container(height: 16), |
51 | 50 | FlutterTemplateInputField(
|
52 | 51 | key: Keys.passwordInput,
|
53 | 52 | enabled: !viewModel.isLoading,
|
54 | 53 | onChanged: viewModel.onPasswordUpdated,
|
55 | 54 | hint: 'Password',
|
56 | 55 | ),
|
57 |
| - Container(height: ThemeDimens.padding16), |
| 56 | + Container(height: 16), |
58 | 57 | if (viewModel.isLoading) ...[
|
59 | 58 | const FlutterTemplateProgressIndicator.light(),
|
60 | 59 | ] else ...[
|
|
0 commit comments