page_turn 1.0.1 copy "page_turn: ^1.0.1" to clipboard
page_turn: ^1.0.1 copied to clipboard

discontinuedreplaced by: turn_page_transition

Page Turn Widget | Add a page turn effect to widgets in your app.

Flutter Community: page_turn

Page Turn Widget #

pub package github pages

Add a page turn effect to widgets in your app.

Screenshots #

info info info

Example #

import 'package:flutter/material.dart';

import 'package:page_turn/page_turn.dart';

import '../common/index.dart';

class HomeScreen extends StatefulWidget {
  const HomeScreen({
    Key key,
  }) : super(key: key);

  @override
  _HomeScreenState createState() => _HomeScreenState();
}

class _HomeScreenState extends State<HomeScreen> {
  final _controller = GlobalKey<PageTurnState>();
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: PageTurn(
        key: _controller,
        backgroundColor: Colors.white,
        showDragCutoff: false,
        lastPage: Container(child: Center(child: Text('Last Page!'))),
        children: <Widget>[
          for (var i = 0; i < 20; i++) AlicePage(page: i),
        ],
      ),
      floatingActionButton: FloatingActionButton(
        child: Icon(Icons.search),
        onPressed: () {
          _controller.currentState.goToPage(2);
        },
      ),
    );
  }
}

172
likes
40
pub points
72%
popularity

Publisher

verified publisherfluttercommunity.dev

Page Turn Widget | Add a page turn effect to widgets in your app.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on page_turn