Skip to content

Page Turn Widget - Add a page turn effect to widgets in your app. Maintainer: @rodydavis

License

Notifications You must be signed in to change notification settings

juniorise/page_turn

This branch is 11 commits ahead of fluttercommunity/page_turn:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8c6ef1d · Jan 20, 2022

History

37 Commits
Feb 7, 2020
Sep 16, 2019
Sep 16, 2019
Jan 20, 2022
Jan 20, 2022
Sep 16, 2019
Sep 16, 2019
Sep 16, 2019
Sep 16, 2019
Jan 20, 2022
Sep 16, 2019
Jun 27, 2020
Sep 16, 2019
Jan 16, 2022
Jan 20, 2022

Repository files navigation

Flutter Community: page_turn

Page Turn Widget

pub package github pages

Add a page turn effect to widgets in your app.

Created by Simon Lightfoot @slightfoot

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);
        },
      ),
    );
  }
}

About

Page Turn Widget - Add a page turn effect to widgets in your app. Maintainer: @rodydavis

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 88.0%
  • Swift 5.1%
  • HTML 4.9%
  • Kotlin 1.8%
  • Objective-C 0.2%