Skip to content
  • This project
    • Loading...
  • Sign in

ethan / appframe

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • appframe
  • lib
  • data
  • repositories
  • message
  • go_login_handler.dart
  • tanghuan's avatar
    增加登录UI,以及其它优化完善 · f8e3a816
    tanghuan committed 2025-10-28 10:06:48 +0800
    f8e3a816 Browse File
go_login_handler.dart 416 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
import 'package:appframe/bloc/web_cubit.dart';
import 'package:appframe/services/dispatcher.dart';

class GoLoginHandler extends MessageHandler {
  late WebCubit? _webCubit;

  @override
  void setCubit(WebCubit cubit) {
    this._webCubit = cubit;
  }

  void _unfollowCubit() {
    this._webCubit = null;
  }

  @override
  Future<dynamic> handleMessage(params) async {
    _webCubit!.goLogin();
    return;
  }
}