mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Make test back button label deterministic (#36404)
This commit is contained in:
parent
38e41f5aee
commit
0636fb439a
@ -15,6 +15,11 @@
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
self.title = @"Dual Flutter Views";
|
||||
self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc]
|
||||
initWithTitle:@"Back"
|
||||
style:UIBarButtonItemStylePlain
|
||||
target:nil
|
||||
action:nil];
|
||||
|
||||
UIStackView* stackView = [[UIStackView alloc] initWithFrame:self.view.frame];
|
||||
stackView.axis = UILayoutConstraintAxisVertical;
|
||||
|
||||
@ -36,6 +36,11 @@ static NSString *_kPing = @"ping";
|
||||
stackView.layoutMargins = UIEdgeInsetsMake(0, 0, 50, 0);
|
||||
stackView.layoutMarginsRelativeArrangement = YES;
|
||||
[self.view addSubview:stackView];
|
||||
self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc]
|
||||
initWithTitle:@"Back"
|
||||
style:UIBarButtonItemStylePlain
|
||||
target:nil
|
||||
action:nil];
|
||||
|
||||
NativeViewController *nativeViewController =
|
||||
[[NativeViewController alloc] initWithDelegate:self];
|
||||
|
||||
@ -34,6 +34,11 @@
|
||||
|
||||
self.title = @"Native iOS View";
|
||||
self.view.backgroundColor = UIColor.lightGrayColor;
|
||||
self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc]
|
||||
initWithTitle:@"Back"
|
||||
style:UIBarButtonItemStylePlain
|
||||
target:nil
|
||||
action:nil];
|
||||
|
||||
_incrementLabel = [self addIncrementLabel];
|
||||
UIStackView* footer = [self addFooter];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user