akshathjain / sliding_up_panel

A draggable Flutter widget that makes implementing a SlidingUpPanel much easier!
https://pub.dartlang.org/packages/sliding_up_panel
Other
1.36k stars 377 forks source link

Add sliding panel indicator. #299

Open KilianShen opened 2 years ago

KilianShen commented 2 years ago

Describe the bug Add sliding panel indicator.

To Reproduce Steps to reproduce the behavior: NONE

Expected behavior Add sliding panel indicator.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Smartphone (please complete the following information):

Sample main.dart Please provide a sample main.dart that reproduces this issue. The code provided here should be able to be run on its own without any external dependencies.

return Stack(
                      clipBehavior: Clip.none,
                      children: [
                        Container(
                          height: _ac.value *
                                  (widget.maxHeight - widget.minHeight) +
                              widget.minHeight,
                          margin: widget.margin,
                          padding: widget.padding,
                          decoration: widget.renderPanelSheet
                              ? BoxDecoration(
                                  border: widget.border,
                                  borderRadius: widget.borderRadius,
                                  boxShadow: widget.boxShadow,
                                  color: widget.color)
                              : null,
                          child: child,
                        ),
                        Positioned(
                          top: -25,
                          left: MediaQuery.of(context).size.width / 2-10,
                          child: Transform.rotate(
                            angle: _ac.value * 3.14,
                            child: const Icon(
                              Icons.keyboard_arrow_up,
                              color: Colors.white,
                            ),
                          ),
                        ),
                      ],
                    );