import 'package:farmer_client/widgets/Modal.dart' as modal;
import 'package:farmer_client/widgets/layout/BasicPage.dart';
import 'package:flutter/material.dart';
import '../../utils/timer.dart';
import './widgets/home/index.dart';

class Home extends BasicPage {
  Home({Key? key}) : super(key: key) {
    tabIndex = 0;
    naviTitle = '首页';
  }

  @override
  Widget builder(BuildContext context) {
    setTimeout(() {
      // showDialog(context: Get.overlayContext!, builder: (BuildContext c) {
      //   return Modal(type: 'dialog', title: '测试', message: '这是一段 message ！', onConfirm: () => print('hahahaha'),);
      // } );
      // Get.dialog(Modal(type: 'dialog', title: '测试', message: '这是一段 message ！', onConfirm: () => print('hahahaha'),));
      // modal.showDialog(title: '测试', content: SizedBox(width: 400, height: 300,), onConfirm: () => false);
    }, 2000);

    return const HomePage();
  }
}
