diff --git a/example/main.dart b/example/lib/main.dart similarity index 93% rename from example/main.dart rename to example/lib/main.dart index 3d8011c..4fb85ab 100644 --- a/example/main.dart +++ b/example/lib/main.dart @@ -40,7 +40,7 @@ class _MyAppState extends State { title, style: TextStyle(fontSize: 22, fontWeight: FontWeight.w700), ), - sliderMenuWidget: MenuWidget( + sliderMenu: MenuWidget( onItemClick: (title) { _key.currentState.closeDrawer(); setState(() { @@ -48,7 +48,7 @@ class _MyAppState extends State { }); }, ), - sliderMainWidget: MainWidget()), + sliderMain: MainWidget()), ), ); } diff --git a/example/main_widget.dart b/example/lib/main_widget.dart similarity index 98% rename from example/main_widget.dart rename to example/lib/main_widget.dart index 77c3613..62c4d92 100644 --- a/example/main_widget.dart +++ b/example/lib/main_widget.dart @@ -29,7 +29,7 @@ class _MainWidgetState extends State { return Container( child: ListView.separated( padding: const EdgeInsets.symmetric(horizontal: 10), - itemBuilder: (buider, index) { + itemBuilder: (builder, index) { return LimitedBox( maxHeight: 150, child: Container( diff --git a/example/menu_widget.dart b/example/lib/menu_widget.dart similarity index 100% rename from example/menu_widget.dart rename to example/lib/menu_widget.dart diff --git a/lib/src/slider.dart b/lib/src/slider.dart index aa7b6a6..bd73e21 100644 --- a/lib/src/slider.dart +++ b/lib/src/slider.dart @@ -163,7 +163,7 @@ class SliderMenuContainerState extends State curve: Curves.easeIn, width: double.infinity, height: double.infinity, - color: Colors.white, + color: widget.appBarColor, transform: getTranslationValues(widget.sliderOpen), child: Column( children: [