Quellcode durchsuchen

Update swiper styles

Vishnu Mohandas vor 5 Jahren
Ursprung
Commit
ecde1df842
1 geänderte Dateien mit 6 neuen und 3 gelöschten Zeilen
  1. 6 3
      lib/ui/memories_widget.dart

+ 6 - 3
lib/ui/memories_widget.dart

@@ -209,7 +209,7 @@ class _FullScreenMemoryState extends State<FullScreenMemory> {
             tag: widget.title,
             tag: widget.title,
             child: Container(
             child: Container(
               alignment: Alignment.bottomCenter,
               alignment: Alignment.bottomCenter,
-              padding: EdgeInsets.fromLTRB(0, 0, 0, 44),
+              padding: EdgeInsets.fromLTRB(0, 0, 0, 160),
               child: AnimatedOpacity(
               child: AnimatedOpacity(
                 opacity: _opacity,
                 opacity: _opacity,
                 duration: Duration(milliseconds: 500),
                 duration: Duration(milliseconds: 500),
@@ -273,9 +273,12 @@ class _FullScreenMemoryState extends State<FullScreenMemory> {
       index: _index,
       index: _index,
       itemCount: widget.memories.length,
       itemCount: widget.memories.length,
       pagination: SwiperPagination(
       pagination: SwiperPagination(
-          alignment: Alignment.topCenter,
+          alignment: Alignment.bottomCenter,
           margin: EdgeInsets.all(36),
           margin: EdgeInsets.all(36),
-          builder: DotSwiperPaginationBuilder(activeColor: Colors.white)),
+          builder: FractionPaginationBuilder(
+            activeColor: Colors.white,
+            color: Colors.grey,
+          )),
       loop: false,
       loop: false,
       control: SwiperControl(),
       control: SwiperControl(),
       onIndexChanged: (index) async {
       onIndexChanged: (index) async {