alibaba / alibaba/flutter_boost

ios:问下App启动后指定跳转Flutter页面问题。(本人ios菜鸟*初学者,在AppDelegate试过设置报错)

Open
#1,498 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
7.2k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

ios:问下App启动后指定跳转Flutter页面问题。(本人ios菜鸟*初学者,在AppDelegate试过设置报错)
正常在native端的viewcontroller里面可以跳转flutter页面,但我们首页是flutter端,我想在App里面启动FBFlutterViewContainer这个。但在AppDelegate写过。可能写的方式不对。
`
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
// UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:[[ViewController alloc]init]];
UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:[[FBFlutterViewContainer alloc]init]];
self.window.rootViewController = nav;

BoostDelegate *boostDelegate = [[BoostDelegate alloc]init];
boostDelegate.navigationController = nav;

[self.window makeKeyAndVisible];
[FlutterBoost.instance setup:application delegate:boostDelegate callback:^(FlutterEngine *engine) {

}];

return YES;
}

`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with AppDelegate's didFinishLaunchingWithOptions implementation and the FBFlutterViewContainer, BoostDelegate, and FlutterBoost setup calls shown in the issue. Trace how the existing native view-controller flow reaches Flutter, then determine the supported startup entry point. Done requires a documented, working way to launch the Flutter page when the app starts.

Written by the indexing model from the issue text.

Assessment

Tech stack
flutter, objective-c
Domain
mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.