We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When clicked menu icon, HomeScreen transfrom to given animated offset value. But background drawerSceen color (i.e. primaryGreen) not showing.
import 'package:HiddenDrawer/configuration.dart'; import 'package:flutter/material.dart'; class HomeScreen extends StatefulWidget { @override _HomeScreenState createState() => _HomeScreenState(); } class _HomeScreenState extends State<HomeScreen> { double xOffset = 0; double yOffset = 0; double scaleFactor = 1; // 1 means 100% screen size - 0.5 means 50% screen size bool isDrawerOpen = false; @override Widget build(BuildContext context) { return Material( child: AnimatedContainer( duration: Duration(milliseconds: 250), transform: Matrix4.translationValues(xOffset, yOffset, 0) ..scale(scaleFactor), color: Colors.white, child: Column( children: [ SizedBox( height: 50, ), Container( margin: EdgeInsets.symmetric(horizontal: 20), child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ isDrawerOpen ? IconButton( icon: Icon(Icons.arrow_back_ios), onPressed: () { setState(() { xOffset = 0; yOffset = 0; scaleFactor = 1; isDrawerOpen = false; }); }, ) : IconButton( icon: Icon(Icons.menu), onPressed: () { setState(() { xOffset = 230; yOffset = 150; scaleFactor = 0.6; isDrawerOpen = true; }); }), Column( children: [ Text('Location'), Row( children: [ Icon( Icons.location_on, color: primaryGreen, ), Text('Ukraine') ], ) ], ), CircleAvatar(), ], ), ) ], ), ), ); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When clicked menu icon, HomeScreen transfrom to given animated offset value. But background drawerSceen color (i.e. primaryGreen) not showing.
Code
The text was updated successfully, but these errors were encountered: