Selaa lähdekoodia

[feat]完成ios键盘1.0版本开发

Destiny 6 kuukautta sitten
vanhempi
commit
29426890fd

+ 1 - 1
ios/Podfile.lock

@@ -218,4 +218,4 @@ SPEC CHECKSUMS:
 
 PODFILE CHECKSUM: 46e41cd7a608d3db06d8570d6fb41a774efc4103
 
-COCOAPODS: 1.15.2
+COCOAPODS: 1.16.2

ios/AiKeyboard/淘宝买菜体.ttf → ios/tbmct.ttf


+ 0 - 36
lib/data/repository/account_repository.dart

@@ -255,42 +255,6 @@ class AccountRepository {
     });
   }
 
-  // 保存token到ios端
-  Future<void> saveAuthToken(String token) async {
-    // 通知iOS键盘扩展
-    if (Platform.isIOS) {
-      const MethodChannel channel = MethodChannel('keyboard_ios');
-      channel.invokeMethod('saveAuthToken', {'token': token});
-    }
-  }
-
-  // 保存token到ios端
-  Future<void> clearAuthToken() async {
-    // 通知iOS键盘扩展
-    if (Platform.isIOS) {
-      const MethodChannel channel = MethodChannel('keyboard_ios');
-      channel.invokeMethod('clearAuthToken');
-    }
-  }
-
-  // 保存token到ios端
-  Future<void> saveAuthToken(String token) async {
-    // 通知iOS键盘扩展
-    if (Platform.isIOS) {
-      const MethodChannel channel = MethodChannel('keyboard_ios');
-      channel.invokeMethod('saveAuthToken', {'token': token});
-    }
-  }
-
-  // 保存token到ios端
-  Future<void> clearAuthToken() async {
-    // 通知iOS键盘扩展
-    if (Platform.isIOS) {
-      const MethodChannel channel = MethodChannel('keyboard_ios');
-      channel.invokeMethod('clearAuthToken');
-    }
-  }
-
   // 意见反馈
   Future<void> complaintSubmit(String? phone, String content) {
     return atmobApi

+ 0 - 32
lib/utils/navitigation_handler.dart

@@ -1,32 +0,0 @@
-import 'package:flutter/services.dart';
-import 'package:get/get.dart';
-import 'package:keyboard/module/login/login_page.dart';
-import 'package:keyboard/module/store/store_page.dart';
-
-class NavigationHandler {
-  static final NavigationHandler _instance = NavigationHandler._internal();
-  factory NavigationHandler() => _instance;
-  NavigationHandler._internal();
-
-  static const MethodChannel _channel = MethodChannel('keyboard_ios');
-
-  static void initialize() {
-    _channel.setMethodCallHandler(_handleMethod);
-  }
-
-  static Future<dynamic> _handleMethod(MethodCall call) async {
-    switch (call.method) {
-      case 'navigateToLogin':
-        LoginPage.start();
-        break;
-      case 'navigateToMember':
-        StorePage.start();
-        break;
-      default:
-        throw PlatformException(
-          code: 'Unimplemented',
-          details: '未实现的方法: ${call.method}',
-        );
-    }
-  }
-}