|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
|
|
import 'package:onemd/widget/fx_doctor_address.dart';
|
|
|
|
|
|
|
|
import 'fx_company_lookup.dart';
|
|
|
|
import 'fx_doctor_lookup.dart';
|
|
|
|
import 'fx_mitra_mou.dart';
|
|
|
|
import 'fx_text_field.dart';
|
|
|
|
|
|
|
|
class FxMitraAddDialog extends HookConsumerWidget {
|
|
|
|
const FxMitraAddDialog({Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context, WidgetRef ref) {
|
|
|
|
final ctrlLogin = useTextEditingController(text: "");
|
|
|
|
final fcLogin = FocusNode();
|
|
|
|
|
|
|
|
return Dialog(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
side: const BorderSide(),
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
),
|
|
|
|
child: SizedBox(
|
|
|
|
width: 800,
|
|
|
|
height: 600,
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.all(20.0),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
FxAcCompany(),
|
|
|
|
const SizedBox(height: 10),
|
|
|
|
const FxMitraMou(),
|
|
|
|
const SizedBox(height: 10),
|
|
|
|
FxAcDoctor(),
|
|
|
|
const SizedBox(height: 10),
|
|
|
|
FxDoctorAddress(),
|
|
|
|
const SizedBox(height: 10),
|
|
|
|
FxTextField(
|
|
|
|
ctrl: ctrlLogin,
|
|
|
|
fc: fcLogin,
|
|
|
|
hint: "Login",
|
|
|
|
label: "Login",
|
|
|
|
),
|
|
|
|
const SizedBox(height: 10),
|
|
|
|
FxTextField(
|
|
|
|
hint: "ID",
|
|
|
|
label: "ID",
|
|
|
|
isReadOnly: true,
|
|
|
|
isEnabled: false,
|
|
|
|
suffixText: "Auto Generated"),
|
|
|
|
const SizedBox(height: 10),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
useTextEditingController({required String text}) {}
|