titled_page_view 0.1.1 copy "titled_page_view: ^0.1.1" to clipboard
titled_page_view: ^0.1.1 copied to clipboard

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

example/example.dart

import 'package:flutter/material.dart';

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

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

class Example extends StatefulWidget {
	@override
	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() {
		super.initState();
	}

	@override
	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,
				),
			)
		);
	}
}
3
likes
40
pub points
14%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

BSD-2-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on titled_page_view