animated_slideover 1.0.4 copy "animated_slideover: ^1.0.4" to clipboard
animated_slideover: ^1.0.4 copied to clipboard

Create dynamic and responsive slide-over sidebars effortlessly with our Flutter package. Inspired by the fluidity of Tailwind CSS, this widget is designed for easy integration into your Flutter applications.

About AnimatedSlideOver #

Sample Image

"Create dynamic and responsive slide-over sidebars effortlessly with our Flutter package. Inspired by the fluidity of Tailwind CSS, this widget is designed for easy integration into your Flutter applications"

Usage #

class TestScreen extends StatefulWidget {
  const TestScreen({Key? key}) : super(key: key);

  @override
  State<TestScreen> createState() => _TestScreenState();
}

class _TestScreenState extends State<TestScreen> {


  Widget hehe(){
    return AppAnimatedSideBar
      (

        onDispose: (){
          print('dispose method');
        },

        buttonsWidgetList: [
          ElevatedButton(
            onPressed: () {
              Navigator.pop(context);
            },
            child: Text(
              'Cancel',
              style: TextStyle(
                  fontWeight: FontWeight.w400),
            ),
            style: ButtonStyle(
              backgroundColor:
              MaterialStateProperty.all(
                  Colors.white), // Background color
              foregroundColor:
              MaterialStateProperty.all(
                  Colors.black), // Text color
              side: MaterialStateProperty.all(BorderSide(
                  color: Colors.grey,
                  width:
                  0.5)), // Border color and width
              shape: MaterialStateProperty.all(
                  RoundedRectangleBorder(
                      borderRadius:
                      BorderRadius.circular(
                          8.0))), // Rounded corners
              padding: MaterialStateProperty.all(
                  EdgeInsets.all(
                      16.0)), // Padding around the button content
            ),
          ),
          SizedBox(
            width: 10,
          ),
          ElevatedButton(
            onPressed: () {
              // Handle button press

            },
            child: Text(
              'Save',
              style: TextStyle(
                  fontWeight: FontWeight.w400,
                  color: Colors.white),
            ),
            style: ButtonStyle(
              backgroundColor:
              MaterialStateProperty.all(Color(0xFF4338ca)), // Background color
              foregroundColor:
              MaterialStateProperty.all(
                  Colors.white), // Text color
              side: MaterialStateProperty.all(BorderSide(
                  color: Colors.grey,
                  width:
                  0.5)), // Border color and width
              shape: MaterialStateProperty.all(
                  RoundedRectangleBorder(
                      borderRadius:
                      BorderRadius.circular(
                          8.0))), // Rounded corners
              padding: MaterialStateProperty.all(
                  EdgeInsets.all(
                      16.0)), // Padding around the button content
            ),
          )
        ],



        subtileText: Text(
          'Create dynamic and responsive slide-over sidebars effortlessly with our Flutter package.'
              'Inspired by the fluidity of Tailwind CSS, this widget is designed for easy integration into your Flutter applications.',
          style: TextStyle(
            fontSize: 15,
            color: Colors.white.withOpacity(0.8),
          ),
        ),

        contentWidgetList: [
          Padding(
            padding: const EdgeInsets.all(10.0),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [

                Text('Your Content Widget List')
              ],
            ),
          )
        ],

        titleText: Text(
          'Animated SlideOver',
          style: TextStyle(
            fontSize: 20,
            color: Colors.white,
          ),
        ),

        headerBgColor: Color(0xFF4338ca),

        headerIcon: IconButton(
            onPressed: () {
              Navigator.pop(context);
            },
            icon: Icon(
              FeatherIcons.x,
              color: Colors.white,
            )));
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: GestureDetector(
        onTap: (){

          showDialog(
            context: context,
            builder: (BuildContext context) {
              return hehe();
              return const DeliveryInvoicePopup(); // CustomPopup is your child widget
            },
          );



        },
        child: Container(
          decoration: BoxDecoration(
            image: DecorationImage(
              image: AssetImage('assets/images/wall.jpg'),
              fit: BoxFit.cover,
            ),
          ),
        ),
      )
    );
  }

}

contentWidgetList (Required): Type: List

titleText (Optional): Type: Text? Description: The title text widget displayed at the top of the animated sidebar.

subtitleText (Optional): Type: Text? Description: The subtitle text widget displayed below the title, providing additional information.

headerBgColor (Optional): Type: Color? Description: The background color of the header section. If not provided, it uses the default background color.

buttonsWidgetList (Optional): Type: List

headerIcon (Required): Type: IconButton Description: An IconButton widget representing the header icon. It's typically used for closing the sidebar.

onDispose (Optional): Type: VoidCallback? Description: A callback function that is invoked when the sidebar is disposed of or closed.

These parameters allow users to customize the appearance and behavior of the animated sidebar based on their application's requirements. Users can provide widgets for the title, subtitle, content, buttons, and an icon for the header, making the widget flexible and adaptable to different use cases.

4
likes
0
points
38
downloads

Publisher

unverified uploader

Weekly Downloads

Create dynamic and responsive slide-over sidebars effortlessly with our Flutter package. Inspired by the fluidity of Tailwind CSS, this widget is designed for easy integration into your Flutter applications.

License

unknown (license)

Dependencies

flutter

More

Packages that depend on animated_slideover