import 'package:fis_ui/index.dart';
import 'package:flutter/material.dart';
import 'package:flyinsono/architecture/define.dart';
import 'package:flyinsono/architecture/router/router.dart';
import 'package:flyinsono/pages/user/user_id_auth_apply/controller.dart';

///手机端APPBar
class MobileAppBar extends FisView<UserIdAuthApplyController>
    implements PreferredSizeWidget {
  @override
  FWidget build(BuildContext context) {
    return FObx(
      () => FAppBar.simple(
        title: controller.roleInfo.name,
        onBackClicked: () => router.back(),
      ),
    );
  }

  @override
  Size get preferredSize => Size.fromHeight(kToolbarHeight);
}
