Skip to content

kidzss/setInitialRoute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Use initWithEngine:nibName:bundle: method to create FlutterViewController, and then setInitialRoute not working

I solved the problem. //=======================

@interface XXFlutterViewController : FlutterViewController

@EnD

(void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. FlutterEngine *flutterEngine = self.engine;

[GeneratedPluginRegistrant registerWithRegistry:flutterEngine]; //custom futter plugin [XXXFlutterBridge registerWithRegistry:flutterEngine]; }

//open flutter vc XXFlutterViewController *flutterViewController = [[XXFlutterViewController alloc] init]; [flutterViewController setInitialRoute:@"xxxxx/xxxx"];

About

flutter setInitialRoute无效

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published