Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

Drawer Header set text positon

// You can just wrap your Text widget in a container that aligns it.

new Drawer(
        child: ListView(
          children: <Widget>[
            Container(
              child: new DrawerHeader(
                child: Container(
                  child: Text("Drawer Header"),
                  alignment: Alignment.bottomLeft, // <-- ALIGNMENT
                  height: 10,
                ),
                decoration: BoxDecoration(color: Colors.blueGrey),
              ),
                height: 50,      // <-- HEIGHT
            )
          ],
        ),
      ),
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Drawer #Header #set #text #positon
ADD COMMENT
Topic
Name
7+8 =