Browse Source

视频缩放适配更改

ff_new
w-R 3 years ago
parent
commit
bbf1b4cbe2
  1. 5
      lib/community/community_view/class_details.dart
  2. 5
      lib/community/community_view/home_class.dart

5
lib/community/community_view/class_details.dart

@ -33,6 +33,10 @@ class ClassDetails extends StatefulWidget {
}
}
class myChewieController extends ChewieController{
}
class _ClassDetails extends State<ClassDetails> with WidgetsBindingObserver {
VideoPlayerController videoPlayerController;
Chewie chewies;
@ -146,6 +150,7 @@ class _ClassDetails extends State<ClassDetails> with WidgetsBindingObserver {
Widget build(BuildContext context) {
return Scaffold(
body: Container(
margin: EdgeInsets.only(top:30),
child: Column(
children: [
Expanded(

5
lib/community/community_view/home_class.dart

@ -120,7 +120,10 @@ class _HomeClass extends State<HomeClass> {
children: [
Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(4),
borderRadius: BorderRadius.only(
topLeft: Radius.circular(4),
topRight: Radius.circular(4),
),
boxShadow: [
BoxShadow(
color: Colors.black.withAlpha(10),

Loading…
Cancel
Save