Browse Source

新增背景图

loki.wu 1 year ago
parent
commit
382975b747
3 changed files with 7 additions and 1 deletions
  1. BIN
      assets/images/live_room_background.jpg
  2. 6 1
      lib/widgets/device_view.dart
  3. 1 0
      pubspec.yaml

BIN
assets/images/live_room_background.jpg


+ 6 - 1
lib/widgets/device_view.dart

@@ -55,7 +55,12 @@ class FRTDeviceChannelView extends StatelessWidget {
       }
       scale = scale * extraScale;
       return Container(
-        color: Colors.black,
+        decoration: const BoxDecoration(
+          image: DecorationImage(
+            image: AssetImage('assets/images/live_room_background.jpg'),
+            fit: BoxFit.cover,
+          ),
+        ),
         child: Center(
           child: AspectRatio(
             aspectRatio: realVideoSize.width / realVideoSize.height,

+ 1 - 0
pubspec.yaml

@@ -52,6 +52,7 @@ flutter:
       - wwwroot/js/
       - wwwroot/lib/jquery/
       - wwwroot/lib/node_player_0.12.6/
+      - assets/images/live_room_background.jpg
   #   - images/a_dot_burr.jpeg
   #   - images/a_dot_ham.jpeg
   #