Skip to content

Commit

Permalink
fix: update SafeArea to SingleChildScrollView
Browse files Browse the repository at this point in the history
  • Loading branch information
danyelvarejao committed May 15, 2023
1 parent 841e82b commit 66e2937
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions lib/src/screens/home/ui/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class HomeScreen extends StateManagerView<HomeController> {
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppColors.veryDarkGrey,
body: SafeArea(
body: SingleChildScrollView(
child: Center(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0),
Expand Down Expand Up @@ -174,24 +174,16 @@ class HomeScreen extends StateManagerView<HomeController> {
Text(passwordStrength.name),
const SizedBox(width: 16.0),
StrengthSquare(
color: passwordStrength.index >= PasswordStrength.tooWeak.index
? passwordStrength.color
: null,
color: passwordStrength.index >= PasswordStrength.tooWeak.index ? passwordStrength.color : null,
),
StrengthSquare(
color: passwordStrength.index >= PasswordStrength.weak.index
? passwordStrength.color
: null,
color: passwordStrength.index >= PasswordStrength.weak.index ? passwordStrength.color : null,
),
StrengthSquare(
color: passwordStrength.index >= PasswordStrength.medium.index
? passwordStrength.color
: null,
color: passwordStrength.index >= PasswordStrength.medium.index ? passwordStrength.color : null,
),
StrengthSquare(
color: passwordStrength.index >= PasswordStrength.strong.index
? passwordStrength.color
: null,
color: passwordStrength.index >= PasswordStrength.strong.index ? passwordStrength.color : null,
),
],
);
Expand Down

0 comments on commit 66e2937

Please sign in to comment.