Search
 
SCRIPT & CODE EXAMPLE
 

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
            )
          ],
        ),
      ),
Comment

PREVIOUS NEXT
Code Example
Dart :: Top level package requires Flutter but FLUTTER_ROOT environment variable not set. 
Dart :: get first word of a string before space flutter 
Dart :: dart while loop 
Dart :: flutter container with custom shape 
Dart :: dart remove from list 
Dart :: FloatingActionButton rtl flutter 
Dart :: flutter logo text color 
Dart :: dart fold 
Dart :: dart define value null 
Dart :: dart list of objects to json 
Dart :: dark mode in flutter packages 
Dart :: dart typedef 
Dart :: Android Emulator Setup without Android Studio in Flutter 
Dart :: dart formatter stuck 
Dart :: flutter provider difference between Consumer<T and context.watch<T 
Dart :: scrolling to top sliverlist flutter with back button 
Dart :: expand contanner in signlescroll flutter 
Dart :: a function body must be provided flutter 
Dart :: git : open another branch ( like clone ) 
Dart :: how to add image to flutter 
Swift :: add shadow to collection view cell swift 
Swift :: change from Date to String swift 5 
Swift :: swift pop to specific view controller 
Swift :: swift ui function with return value 
Swift :: ShareSheet: UIViewControllerRepresentable swiftui 
Swift :: swift 5 make a phone call 
Swift :: hide status bar in tableview cell in swift 
Swift :: deselect cell swift 
Swift :: swift animate add subview 
Swift :: custom tab bar swift ios 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =