Skip to content
6 changes: 3 additions & 3 deletions examples/movie_app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ class MyApp extends StatelessWidget {
return StacApp(
title: 'Flutter Demo',
theme: StacTheme.fromJson(darkThemeJson),
homeBuilder:
(context) =>
Stac.fromAssets('assets/jsons/screens/onboarding_screen.json'),
homeBuilder: (_) {
return Stac.fromAssets('assets/jsons/screens/onboarding_screen.json');
},
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ abstract class StacText with _$StacText {
String? semanticsLabel,
TextWidthBasis? textWidthBasis,
String? selectionColor,
StacTextStyle? copyWithStyle,
}) = _StacText;

factory StacText.fromJson(Map<String, dynamic> json) =>
Expand All @@ -34,6 +35,7 @@ abstract class StacTextSpan with _$StacTextSpan {
const factory StacTextSpan({
String? data,
StacTextStyle? style,
StacTextStyle? copyWithStyle,
Map<String, dynamic>? onTap,
}) = _StacTextSpan;

Expand Down
Loading