dismissible_page 0.7.3 copy "dismissible_page: ^0.7.3" to clipboard
dismissible_page: ^0.7.3 copied to clipboard

outdated

Creates page that is dismissed by swipe gestures, with Hero style animations, Inspired by Facebook, Instagram stories.

example/lib/main.dart

import 'dart:ui';
import 'package:example/pages/dismissible_page_demo.dart';
import 'package:flutter/material.dart';

class MyCustomScrollBehavior extends MaterialScrollBehavior {
  // Override behavior methods and getters like dragDevices
  @override
  Set<PointerDeviceKind> get dragDevices => {
        PointerDeviceKind.touch,
        PointerDeviceKind.mouse,
      };
}

const accentColor = Color(0xff00d573);

void main() => runApp(
      MaterialApp(
        debugShowCheckedModeBanner: false,
        theme: ThemeData(
          primaryColor: accentColor,
          scaffoldBackgroundColor: Colors.white,
          appBarTheme: AppBarTheme(color: Colors.white),
          chipTheme: ChipThemeData(selectedColor: accentColor),
          sliderTheme: SliderThemeData(
            activeTrackColor: accentColor,
            activeTickMarkColor: accentColor,
            thumbColor: accentColor,
            inactiveTrackColor: accentColor.withOpacity(.2),
          ),
        ),
        home: ScrollConfiguration(
          behavior: MyCustomScrollBehavior(),
          child: DismissiblePageDemo(),
        ),
      ),
    );
618
likes
90
pub points
96%
popularity

Publisher

verified publisherfman.ge

Creates page that is dismissed by swipe gestures, with Hero style animations, Inspired by Facebook, Instagram stories.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on dismissible_page