Skip to content

# Flutter Install flutter create aaan_mamunimo cd aaan_mamunimo # Required Packages flutter pub add firebase_core flutter pub add firebase_auth flutter pub add cloud_firestore flutter pub add firebase_s #13418

@AAANMAMUNiom

Description

@AAANMAMUNiom

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.

  • I will try and fix this problem on docs.flutter.dev.

Metadata

Metadata

Assignees

No one assigned

    Labels

    from.page-issueReported in a reader-filed concern

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions