Commit d0dae876 authored by Vadaski's avatar Vadaski

remove useless code

- Remove overridden buildTransitions method because it seems useless.

- Also removed Stub, didn't find it used.
parent ee2e660a
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
...@@ -36,23 +37,14 @@ class BoostPageRoute<T> extends MaterialPageRoute<T> { ...@@ -36,23 +37,14 @@ class BoostPageRoute<T> extends MaterialPageRoute<T> {
final Set<VoidCallback> backPressedListeners = Set<VoidCallback>(); final Set<VoidCallback> backPressedListeners = Set<VoidCallback>();
@override
Widget buildTransitions(BuildContext context, Animation<double> animation,
Animation<double> secondaryAnimation, Widget child) {
return super.buildTransitions(context, animation, secondaryAnimation, child);
}
BoostPageRoute( BoostPageRoute(
{Key stubKey, {this.pageName,
this.pageName,
this.params, this.params,
this.uniqueId, this.uniqueId,
this.animated, this.animated,
this.builder, this.builder,
this.settings}) this.settings})
: super( : super(builder: builder, settings: settings);
builder: (BuildContext context) => Stub(stubKey, builder(context)),
settings: settings);
static BoostPageRoute<T> of<T>(BuildContext context) { static BoostPageRoute<T> of<T>(BuildContext context) {
final Route<T> route = ModalRoute.of(context); final Route<T> route = ModalRoute.of(context);
...@@ -72,18 +64,3 @@ class BoostPageRoute<T> extends MaterialPageRoute<T> { ...@@ -72,18 +64,3 @@ class BoostPageRoute<T> extends MaterialPageRoute<T> {
} }
} }
} }
@immutable
class Stub extends StatefulWidget {
final Widget child;
const Stub(Key key, this.child) : super(key: key);
@override
_StubState createState() => _StubState();
}
class _StubState extends State<Stub> {
@override
Widget build(BuildContext context) => widget.child;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment