Skip to content

Commit

Permalink
fix: replaced deprecated code with suggested ones
Browse files Browse the repository at this point in the history
  • Loading branch information
OutdatedGuy committed May 14, 2023
1 parent 9fbc8c9 commit cd68810
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ios.dart
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ void _updateInfoPlistFile({
var elementFound = true;
final uIStatusBarHidden = dict.children.whereType<XmlElement>().firstWhere(
(element) {
return element.text == 'UIStatusBarHidden';
return element.innerText == 'UIStatusBarHidden';
},
orElse: () {
final builder = XmlBuilder();
Expand Down Expand Up @@ -529,7 +529,7 @@ void _updateInfoPlistFile({
final uIViewControllerBasedStatusBarAppearance =
dict.children.whereType<XmlElement>().firstWhere(
(element) {
return element.text == 'UIViewControllerBasedStatusBarAppearance';
return element.innerText == 'UIViewControllerBasedStatusBarAppearance';
},
orElse: () {
final builder = XmlBuilder();
Expand Down

0 comments on commit cd68810

Please sign in to comment.