Skip to content

Commit

Permalink
Merge branch 'master' of github.com:pinkfish/flutter_native_timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkfish committed Mar 5, 2021
2 parents a1fce3e + 6400dde commit 527ef28
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class MyApp extends StatefulWidget {

class _MyAppState extends State<MyApp> {
String _timezone = 'Unknown';
List<String> _availableTimezones = List<String>();
List<String> _availableTimezones = <String>[];

@override
void initState() {
Expand Down
3 changes: 2 additions & 1 deletion example/test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ void main() {
expect(
find.byWidgetPredicate(
(Widget widget) =>
widget is Text && widget.data.startsWith('Local timezone:'),
widget is Text &&
widget.data?.startsWith('Local timezone:') == true,
),
findsOneWidget,
);
Expand Down
1 change: 1 addition & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,4 @@ packages:
version: "2.1.0"
sdks:
dart: ">=2.12.0 <3.0.0"
flutter: ">=1.12.0"
2 changes: 2 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ flutter:
android:
package: com.whelksoft.flutter_native_timezone
pluginClass: FlutterNativeTimezonePlugin
ios:
pluginClass: FlutterNativeTimezonePlugin
macos:
pluginClass: FlutterNativeTimezonePlugin

0 comments on commit 527ef28

Please sign in to comment.