Unverified Commit 0636fb43 authored by xster's avatar xster Committed by GitHub

Make test back button label deterministic (#36404)

parent 38e41f5a
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment