Skip to content

Commit

Permalink
fix: api changed, build failed using flutter beta version
Browse files Browse the repository at this point in the history
  • Loading branch information
befovy committed Mar 22, 2020
1 parent 2351e9c commit 0aa1e9f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
24 changes: 13 additions & 11 deletions example/lib/media_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ class MediaItem extends StatelessWidget {

@override
Widget build(BuildContext context) {
List ws = <Widget>[];

if (mediaUrl.title != null) {
ws.add(Text(
mediaUrl.title,
style: TextStyle(fontSize: 15),
));
}
ws.add(Text(
mediaUrl.url,
style: TextStyle(fontSize: 13),
));
return ButtonTheme(
// height: mediaUrl.title == null ? 50 : 60,

Expand All @@ -57,17 +69,7 @@ class MediaItem extends StatelessWidget {
EdgeInsets.only(left: 15, right: 15, top: 10, bottom: 10),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
if (mediaUrl.title != null)
Text(
mediaUrl.title,
style: TextStyle(fontSize: 15),
),
Text(
mediaUrl.url,
style: TextStyle(fontSize: 13),
),
],
children: ws,
))),
);
}
Expand Down
4 changes: 2 additions & 2 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ packages:
name: package_config
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.9.2"
package_resolver:
dependency: transitive
description:
Expand Down Expand Up @@ -522,5 +522,5 @@ packages:
source: hosted
version: "2.2.0"
sdks:
dart: ">=2.6.0 <3.0.0"
dart: ">=2.7.0 <3.0.0"
flutter: ">=1.12.13+hotfix.4 <2.0.0"
2 changes: 1 addition & 1 deletion lib/core/fijkview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class _FijkViewState extends State<FijkView> {

Future<dynamic> _pushFullScreenWidget(BuildContext context) async {
final TransitionRoute<Null> route = PageRouteBuilder<Null>(
settings: RouteSettings(isInitialRoute: false),
settings: RouteSettings(),
pageBuilder: _fullScreenRoutePageBuilder,
);

Expand Down

0 comments on commit 0aa1e9f

Please sign in to comment.