forgotPasswordView property

String forgotPasswordView

Implementation

static String get forgotPasswordView =>
    '''import 'package:flutter/material.dart';
import 'package:mega_commons/mega_commons.dart';
import 'package:mega_commons_dependencies/mega_commons_dependencies.dart';
import 'package:mega_features/mega_features.dart';

class ForgotPasswordView extends GetView<ForgotPasswordController> {
const ForgotPasswordView({super.key});

@override
Widget build(BuildContext context) {
  return Scaffold(
    appBar: AppBar(
      title: const Text('Esqueceu a senha'),
    ),
    body: Form(
      key: controller.formKey,
      child: Card(
        child: Container(
          padding: const EdgeInsets.symmetric(
            horizontal: 12,
            vertical: 12,
          ),
          child: Column(
            children: [
              MegaTextFieldWidget(
                controller.emailController,
                labelText: 'Email',
                isRequired: true,
                keyboardType: TextInputType.emailAddress,
              ),
              const SizedBox(height: 26),
              Obx(
                () => MegaBaseButton(
                  'Enviar',
                  onButtonPress: () async {
                    await controller.onSubmit();
                  },
                  isLoading: controller.isLoading,
                ),
              )
            ],
          ),
        ),
      ),
    ),
  );
}
}
''';