// ignore_for_file: use_build_context_synchronously

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:hive_flutter/hive_flutter.dart';
import 'package:tp5/core/basic_page.dart';

class AuthMagiclink extends ConsumerStatefulWidget {
  const AuthMagiclink({super.key, required this.token});
  final String? token;
  @override
  createState() => _AuthMagiclinkState();
}

class _AuthMagiclinkState extends ConsumerState<AuthMagiclink> {
  // final _formKey = GlobalKey<FormState>();
  // AutovalidateMode? _autovalidateMode;
  // bool _isSubmitting = false;

  // final _userCtrl = TextEditingController()
  //   ..text = Hive.box("settings").get("crewlink_user") ?? "";
  // final _passCtrl = TextEditingController()
  //   ..text = Hive.box("settings").get("crewlink_pass") ?? "";

  @override
  Widget build(BuildContext context) {
    return BasicPage(
        title: "TAR Pilot v5 / Connect",
        body: SingleChildScrollView(child: Text("${widget.token}")));
  }
}
