Ver código fonte

replace orientation plugin source

hwh97 6 anos atrás
pai
commit
281f727bb9
2 arquivos alterados com 6 adições e 2 exclusões
  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