titled_page_view 0.1.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 69

titled_page_view #

A Flutter PageView with an additional title bar and optional controls.

Build Status

Showcase #

Usage #

Example #

First, add the package to your pubspec.yaml:

     titled_page_view: ^0.1.1

Now you can use TitledPageView like Flutters's PageView

 import 'package:titled_page_view/titled_page_view.dart';


 new Scaffold(
   body: new TitledPageView(
     children: [
         children: [
           Container(height: 300, color: Colors.green),
         children: [
           Container(height: 300, color: Colors.red),
     titleChildren: [

Interface #

TitledPageView is build around Flutter's PageView. Therefore, many have the same name and work exactly the same. The only two additional options are fadeEffect and controlButtons, which add optional fading effects and controls to the title, respectively. Currently, both the fade animation and the buttons (chevron_left/chevron_right) are hard coded. Lastly, the code is written such that scrollDirection of Axis.vertical is currently not possible, hence this option does not exist. With these differences in mind the interface resembles Flutter's PageView Widget very closely, thus one can always consult the official Flutter documentation.

[0.1.0] - 09.02.2019

Initial Release

  • Title supports optional fading animation
  • Title supports optional control buttons
  • Unit tests included


import 'package:flutter/material.dart';

import '../lib/titled_page_view.dart';

void main() => runApp(Example());

class Example extends StatefulWidget {
	State<StatefulWidget> createState() => ExampleState();

class ExampleState extends State<Example> with SingleTickerProviderStateMixin {
	List<Widget> titles = [Text('blue'), Text('red'), Text('green')];
	List<Widget> body = [
		Container(color: Colors.blue,),
		Container(color: Colors.red,),
		Container(color: Colors.green,),

	@override void initState() {

	Widget build(BuildContext context) {

		return MaterialApp(
			title: 'titled_page_view example',
			home: Scaffold(
				appBar: AppBar(
					title: Text('titled_page_view example'),
				body: TitledPageView(
					titleChildren: titles,
					children: body,

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  titled_page_view: ^0.1.1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:titled_page_view/titled_page_view.dart';
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]
Learn more about scoring.

We analyzed this package on Jan 27, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.4
  • Flutter: 1.12.13+hotfix.5

Health suggestions

Format lib/titled_page_view.dart.

Run flutter format to format lib/titled_page_view.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies