sliding_panel 0.1.0 sliding_panel: ^0.1.0 copied to clipboard
A Flutter slidable widget that provides an easy to use configuration. Just as you want it!
import 'package:example/result.dart';
import 'package:flutter/material.dart';
import 'controller-callback-options.dart';
import 'result.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()),
);
},
),
),
],
),
);
}
}