Skip to content

Instantly share code, notes, and snippets.

@kishan2612
Created December 29, 2018 14:38
Show Gist options
  • Save kishan2612/7b88f8aa158dceb820136ddc4c905dc0 to your computer and use it in GitHub Desktop.
Save kishan2612/7b88f8aa158dceb820136ddc4c905dc0 to your computer and use it in GitHub Desktop.
custom navigation drawer main view code
class _MyHomePageState extends State<MyHomePage>
with SingleTickerProviderStateMixin {
AnimationController _controller;
@override
void initState() {
super.initState();
_controller = AnimationController(
vsync: this, duration: const Duration(milliseconds: 100), value: 1.0);
}
@override
void dispose() {
super.dispose();
_controller.dispose();
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: MainActivity(_controller),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment