Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit f2b8891

Browse files
authored
Merge pull request #341 from UnityTech/dev
Dev
2 parents 23ac4aa + 6f8b50a commit f2b8891

22 files changed

+3376
-38
lines changed

Runtime/cupertino/app.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System.Collections.Generic;
22
using Unity.UIWidgets.foundation;
3+
using Unity.UIWidgets.material;
34
using Unity.UIWidgets.painting;
45
using Unity.UIWidgets.ui;
56
using Unity.UIWidgets.widgets;
@@ -122,21 +123,15 @@ void _updateNavigator() {
122123
}
123124
}
124125

125-
// Iterable<LocalizationsDelegate<dynamic>> get _localizationsDelegates sync* {
126-
// if (widget.localizationsDelegates != null)
127-
// yield* widget.localizationsDelegates;
128-
// yield DefaultCupertinoLocalizations.delegate;
129-
// }
130-
131126
List<LocalizationsDelegate> _localizationsDelegates {
132127
get {
133-
List<LocalizationsDelegate<CupertinoLocalizations>> _delegates =
134-
new List<LocalizationsDelegate<CupertinoLocalizations>>();
128+
var _delegates = new List<LocalizationsDelegate>();
135129
if (this.widget.localizationsDelegates != null) {
136130
_delegates.AddRange(this.widget.localizationsDelegates);
137131
}
138132

139133
_delegates.Add(DefaultCupertinoLocalizations.del);
134+
_delegates.Add(DefaultMaterialLocalizations.del);
140135
return new List<LocalizationsDelegate>(_delegates);
141136
}
142137
}

0 commit comments

Comments
 (0)