Skip to content

Commit

Permalink
device preview true & bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
abuanwar072 committed Jan 13, 2024
1 parent b80716b commit 31aab69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:foodly_ui/screens/onboarding/onboarding_scrreen.dart';

void main() {
runApp(DevicePreview(
enabled: false,
builder: (context) => const MyApp(),
));
}
Expand Down
8 changes: 4 additions & 4 deletions lib/screens/auth/components/sign_in_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ class _SignInFormState extends State<SignInForm> {
const SizedBox(height: defaultPadding),

// Sign In Button
PrimaryButton(
text: "Sign In",
press: () {
ElevatedButton(
onPressed: () {
if (_formKey.currentState!.validate()) {
_formKey.currentState!.save();

Expand All @@ -88,7 +87,8 @@ class _SignInFormState extends State<SignInForm> {
);
}
},
)
child: Text("Sign In"),
),
],
),
);
Expand Down

0 comments on commit 31aab69

Please sign in to comment.