sliding_panel 0.2.0 copy "sliding_panel: ^0.2.0" to clipboard
sliding_panel: ^0.2.0 copied to clipboard

outdated

A Flutter slidable widget that provides an easy to use configuration. Just as you want it!

example/lib/main.dart

import 'package:flutter/material.dart';

import 'controller-callback-options.dart';
import 'result.dart';
import 'sizing.dart';
import 'two-state.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: MyHomePage(),
      debugShowCheckedModeBanner: false,
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Flutter SlidingPanel'),
      ),
      body: ListView(
        children: <Widget>[
          Padding(
            padding: const EdgeInsets.all(8.0),
            child: RaisedButton(
              child: Text("Two state panel"),
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(builder: (context) => TwoStateExample()),
                );
              },
            ),
          ),
          Padding(
            padding: const EdgeInsets.all(8.0),
            child: RaisedButton(
              child:
                  Text("Use of PanelController, Callbacks and customization"),
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(builder: (context) => CustomizeDemo()),
                );
              },
            ),
          ),
          Padding(
            padding: const EdgeInsets.all(8.0),
            child: RaisedButton(
              child: Text("PopWithResult and SendResult"),
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(builder: (context) => ResultExample()),
                );
              },
            ),
          ),
          Padding(
            padding: const EdgeInsets.all(8.0),
            child: RaisedButton(
              child: Text("Panel Height changing (Beta)"),
              onPressed: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(builder: (context) => SizingExample()),
                );
              },
            ),
          ),
        ],
      ),
    );
  }
}
100
likes
0
points
63
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter slidable widget that provides an easy to use configuration. Just as you want it!

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on sliding_panel