Drawer(Ĭhild: Text("V1.0.0",style: TextStyle(fontWeight: FontWeight. The Simpler Solution Would be to use an Expanded Widget that takes the remaining Space Look I have used a Column and added A widget above and below the Expanded Widget. ![]() The Align Selected Objects option becomes enabled. In the document, select at least two objects. If Align Selected Objects is not available. Click Arrange > Align > Align Selected Objects. ![]() The left property specifies the left position of an element along with the position property. Hold down Shift, click the objects that you want to align, and then click the Shape Format tab. The bottom property specifies the bottom position of an element along with the position property. Look whats the problem with your code you have added a Column as a Child to the Drawer so whatever you add in it are vertically placed and The height of Column is by default shrunk to its children's height and it gets larger as the child gets, so there's no point in adding an Align inside a Column Use the text-align property to align the inner content of the block element. This produces the below output where the UserAccountDrawerHeader and the text items can be scrolled around inside the drawer but the Divider and the two ListTiles stay static on the bottom of the drawer. on the bottom and should not scroll with the above ListView This container holds all the children that will be aligned ![]() ![]() This align moves the children to the bottomĪlignment: FractionalOffset.bottomCenter, ListView contains a group of widgets that scroll inside the drawer Years on and there's a much easier solution: return Drawer(
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |