diff --git a/example/lib/main.dart b/example/lib/main.dart index ec7fad3..64cafef 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; +import 'package:flutter_slider_drawer/flutter_slider_drawer.dart'; +import 'package:fluttersliderdrawer_example/main_widget.dart'; import 'dart:async'; -import 'package:fluttersliderdrawer/flutter_slider_drawer.dart'; -import 'package:fluttersliderdrawer_example/main_widget.dart'; import 'package:fluttersliderdrawer_example/menu_widget.dart'; void main() { @@ -35,7 +35,6 @@ class _MyAppState extends State { key: _key, appBarPadding: const EdgeInsets.only(top: 20), sliderMenuOpenOffset: 250, -// sliderMenuCloseOffset: 50, appBarHeight: 60, title: Text( title, diff --git a/example/lib/main_widget.dart b/example/lib/main_widget.dart index 0dd02d8..77c3613 100644 --- a/example/lib/main_widget.dart +++ b/example/lib/main_widget.dart @@ -54,14 +54,12 @@ class _MainWidgetState extends State { ), Padding( padding: const EdgeInsets.all(10), - child: Flexible( - child: Text( - dataList[index].detail, - style: TextStyle( - fontFamily: 'BalsamiqSans_Regular', - fontSize: 15, - color: Colors.white), - ), + child: Text( + dataList[index].detail, + style: TextStyle( + fontFamily: 'BalsamiqSans_Regular', + fontSize: 15, + color: Colors.white), ), ) ], diff --git a/example/pubspec.lock b/example/pubspec.lock index 38e05f7..a2431a3 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -69,18 +69,18 @@ packages: description: flutter source: sdk version: "0.0.0" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - fluttersliderdrawer: + flutter_slider_drawer: dependency: "direct main" description: path: ".." relative: true source: path - version: "0.0.1" + version: "1.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" image: dependency: transitive description: diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 0b5fa93..8ecd1b4 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -12,7 +12,7 @@ dependencies: flutter: sdk: flutter - fluttersliderdrawer: + flutter_slider_drawer: # When depending on this package from a real application you should use: # fluttersliderdrawer: ^x.y.z # See https://dart.dev/tools/pub/dependencies#version-constraints diff --git a/fluttersliderdrawer.iml b/fluttersliderdrawer.iml index 73e7ebd..9a198d2 100644 --- a/fluttersliderdrawer.iml +++ b/fluttersliderdrawer.iml @@ -11,6 +11,7 @@ + diff --git a/lib/flutter_slider_drawer.dart b/lib/flutter_slider_drawer.dart index b00a2c4..74d4d94 100644 --- a/lib/flutter_slider_drawer.dart +++ b/lib/flutter_slider_drawer.dart @@ -1 +1 @@ -export 'slider_drawer_widget.dart'; +export 'slider_drawer_widget.dart'; \ No newline at end of file diff --git a/lib/slider_drawer_widget.dart b/lib/slider_drawer_widget.dart index 1958be3..118beb8 100644 --- a/lib/slider_drawer_widget.dart +++ b/lib/slider_drawer_widget.dart @@ -49,7 +49,7 @@ class SliderMenuContainerState extends State double _slideBarYOffset = 0; bool _isSlideBarOpen = false; AnimationController _animationController; - double _pageScale = 1; + double _pageScale = 1; Widget drawerIcon; double db = 0; @@ -92,7 +92,6 @@ class SliderMenuContainerState extends State void initState() { super.initState(); - _animationController = AnimationController( vsync: this, duration: diff --git a/pubspec.yaml b/pubspec.yaml index 6313195..b2b9738 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ -name: fluttersliderdrawer +name: flutter_slider_drawer description: A new Flutter plugin. -version: 0.0.1 +version: 1.0.0 author: homepage: