enter image description here
here is my code
what to do?
import 'package:flutter/material.dart';
import 'package:hms/screens/login_screen.dart';
void main(List<String> args) {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
MyApp({Key? key})
// ignore: empty_constructor_bodies
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: LoginScreen(),
);
}
}
blank screen in my emulatoer
2
Answers
Here is a working code:
You can fix it through this way: