diff --git a/lib/widget/BarIndicator.dart b/lib/widget/BarIndicator.dart new file mode 100644 index 0000000..e69de29 diff --git a/lib/widget/customappbar.dart b/lib/widget/customappbar.dart new file mode 100644 index 0000000..e69de29 diff --git a/lib/widget/glass.dart b/lib/widget/glass.dart new file mode 100644 index 0000000..e69de29 diff --git a/lib/widget/mini_player.dart b/lib/widget/mini_player.dart deleted file mode 100644 index 75396de..0000000 --- a/lib/widget/mini_player.dart +++ /dev/null @@ -1,75 +0,0 @@ -import 'package:flutter/material.dart'; - -class MiniPlayer extends StatelessWidget { - const MiniPlayer({Key? key}) : super(key: key); - - @override - Widget build(BuildContext context) { - return AnimatedContainer( - duration: const Duration(seconds: 1), - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - SizedBox( - height: 1, - child: SliderTheme( - data: SliderTheme.of(context).copyWith( - activeTrackColor: Colors.orange, - inactiveTrackColor: Colors.red.withOpacity(0.3), - trackShape: MiniPlayerTrackShape(), - trackHeight: 2, - thumbShape: const RoundSliderThumbShape( - enabledThumbRadius: 0, - ), - ), - child: const Slider( - value: 0, - max: 100, - onChanged: null, - ), - ), - ), - ListTile( - title: const Text('Playing'), - trailing: Row( - mainAxisSize: MainAxisSize.min, - children: [ - IconButton( - onPressed: () {}, - icon: const Icon(Icons.skip_previous), - ), - IconButton( - onPressed: () {}, - icon: const Icon(Icons.pause), - ), - IconButton( - onPressed: () {}, - icon: const Icon(Icons.skip_next), - ), - ], - ), - ), - ], - ), - ); - } -} - -class MiniPlayerTrackShape extends RoundedRectSliderTrackShape { - @override - Rect getPreferredRect({ - required RenderBox parentBox, - Offset offset = Offset.zero, - required SliderThemeData sliderTheme, - bool isEnabled = false, - bool isDiscrete = false, - }) { - final double? trackHeight = sliderTheme.trackHeight; - final double trackLeft = offset.dx; - final double trackTop = - offset.dy + (parentBox.size.height - trackHeight!) / 2; - final double trackWidth = parentBox.size.width; - - return Rect.fromLTWH(trackLeft, trackTop, trackWidth, trackHeight); - } -} diff --git a/lib/widget/more_options_card_widget.dart b/lib/widget/more_options_card_widget.dart new file mode 100644 index 0000000..e69de29