Page URL
https://docs.flutter.dev/tools/hot-reload
Page source
https://github.com/flutter/website/blob/main/sites/docs/src/content/tools/hot-reload.md
Describe the problem
// main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const AAANMAMUNimo());
}
class AAANMAMUNimo extends StatelessWidget {
const AAANMAMUNimo({super.key});
@OverRide
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'AAAN.MAMUNimo',
theme: ThemeData(
primaryColor: Colors.red,
scaffoldBackgroundColor: Colors.white,
),
home: const LoginScreen(),
);
}
}
class LoginScreen extends StatelessWidget {
const LoginScreen({super.key});
@OverRide
Widget build(BuildContext context) {
return Scaffold(
body: Padding(
padding: const EdgeInsets.all(20),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Text(
"AAAN.MAMUNimo",
style: TextStyle(
fontSize: 32,
fontWeight: FontWeight.bold,
color: Colors.red,
),
),
const SizedBox(height: 40),
TextField(
decoration: InputDecoration(
hintText: "Enter Mobile Number",
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(15),
),
),
),
const SizedBox(height: 20),
SizedBox(
width: double.infinity,
height: 55,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: Colors.green,
),
onPressed: () {},
child: const Text(
"Send OTP",
style: TextStyle(fontSize: 18),
),
),
),
],
),
),
);
}
}
Expected fix
No response
Additional context
No response
I would like to fix this problem.
Page URL
https://docs.flutter.dev/tools/hot-reload
Page source
https://github.com/flutter/website/blob/main/sites/docs/src/content/tools/hot-reload.md
Describe the problem
// main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const AAANMAMUNimo());
}
class AAANMAMUNimo extends StatelessWidget {
const AAANMAMUNimo({super.key});
@OverRide
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'AAAN.MAMUNimo',
theme: ThemeData(
primaryColor: Colors.red,
scaffoldBackgroundColor: Colors.white,
),
home: const LoginScreen(),
);
}
}
class LoginScreen extends StatelessWidget {
const LoginScreen({super.key});
@OverRide
Widget build(BuildContext context) {
return Scaffold(
body: Padding(
padding: const EdgeInsets.all(20),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
}
}
Expected fix
No response
Additional context
No response
I would like to fix this problem.