A Flutter PageView with an additional title bar and optional controls.
First, add the package to your pubspec.yaml:
dependencies: ... titled_page_view: ^0.1.0
Now you can use
TitledPageView like Flutters's
import 'package:titled_page_view/titled_page_view.dart'; ... new Scaffold( body: new TitledPageView( children: [ Column( children: [ Container(height: 300, color: Colors.green), ] ), Column( children: [ Container(height: 300, color: Colors.red), ] ), ], titleChildren: [ Text('Green'), Text('Red'), ], ), ),
TitledPageView is build around Flutter's
PageView. Therefore, many have the same name and work
exactly the same. The only two additional options are
add optional fading effects and controls to the title, respectively. Currently, both the fade
animation and the buttons (
chevron_right) are hard coded. Lastly, the code is
written such that
Axis.vertical is currently not possible, hence this
option does not exist. With these differences in mind the interface resembles Flutter's
Widget very closely, thus one can always consult the official Flutter documentation.
Add this to your package's pubspec.yaml file:
dependencies: titled_page_view: ^0.1.0
You can install packages from the command line:
$ flutter packages get
Alternatively, your editor might support
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.1.0||Feb 9, 2019|
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Feb 14, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
flutter format to format
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
titled_page_view.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.