// Copyright 2024, the Flutter project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. import 'package:flutter/cupertino.dart'; class VeggieSeasonsPage extends Page { final Widget child; const VeggieSeasonsPage({ super.key, required this.child, super.restorationId, }); @override VeggieSeasonsPageRoute createRoute(BuildContext context) => VeggieSeasonsPageRoute(this); } class VeggieSeasonsPageRoute extends PageRoute { VeggieSeasonsPageRoute(VeggieSeasonsPage page) : super(settings: page); VeggieSeasonsPage get _page => settings as VeggieSeasonsPage; @override Color? get barrierColor => null; @override String? get barrierLabel => null; @override bool get maintainState => true; @override Duration get transitionDuration => Duration.zero; @override Widget buildPage( BuildContext context, Animation animation, Animation secondaryAnimation, ) => _page.child; }