|
|
|
@ -40,6 +40,7 @@ class _VideoAppState extends State<VideoApp> { |
|
|
|
|
Widget build(BuildContext context) { |
|
|
|
|
final defaultStyles = DefaultStyles.getInstance(context); |
|
|
|
|
if (!_controller.value.isInitialized || _controller.value.hasError) { |
|
|
|
|
if (widget.readOnly) { |
|
|
|
|
return RichText( |
|
|
|
|
text: TextSpan( |
|
|
|
|
text: widget.videoUrl, |
|
|
|
@ -49,6 +50,10 @@ class _VideoAppState extends State<VideoApp> { |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return RichText( |
|
|
|
|
text: TextSpan(text: widget.videoUrl, style: defaultStyles.link)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return Container( |
|
|
|
|
height: 300, |
|
|
|
|
child: InkWell( |
|
|
|
|