瀏覽代碼

replace orientation plugin source

hwh97 6 年之前
父節點
當前提交
281f727bb9
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 5 1
      lib/src/i2_material_controls.dart
  2. 1 1
      pubspec.yaml

+ 5 - 1
lib/src/i2_material_controls.dart

@@ -151,7 +151,11 @@ class _MaterialControlsState extends State<I2MaterialControls> {
       child: Container(
         height: barHeight,
 //        color: Theme.of(context).dialogBackgroundColor,
-        color: Colors.transparent,
+//        color: Colors.transparent,
+        decoration: BoxDecoration(
+            gradient: const LinearGradient(
+                colors: [Colors.black38, Colors.transparent], begin: Alignment.bottomCenter, end: Alignment.topCenter, stops: [0.0, 1]),
+        ),
         child: Row(
           children: <Widget>[
             _buildPlayPause(controller),

+ 1 - 1
pubspec.yaml

@@ -16,7 +16,7 @@ dependencies:
   wakelock: ">=0.1.2 <0.2.0"
   orientation:
     git:
-      url: https://github.com/sososdk/flutter_orientation.git
+      url: https://github.com/hwh97/flutter_orientation.git
 
   flutter:
     sdk: flutter