Skip to content

Commit

Permalink
fix: replaced deprecated code with suggested ones (jonbhanson#550)
Browse files Browse the repository at this point in the history
(cherry picked from commit 491a647)
  • Loading branch information
OutdatedGuy authored and doananhtuan22111996 committed May 27, 2023
1 parent 98376f2 commit b694e2d
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 b694e2d

Please sign in to comment.