Search
 
SCRIPT & CODE EXAMPLE
 

DART

app bar for chat flutter

return Scaffold(
      appBar: AppBar(
        elevation: 0,
        automaticallyImplyLeading: false,
        backgroundColor: Colors.white,
        flexibleSpace: SafeArea(
          child: Container(
            padding: EdgeInsets.only(right: 16),
            child: Row(
              children: <Widget>[
                IconButton(
                  onPressed: (){
                    Navigator.pop(context);
                  },
                  icon: Icon(Icons.arrow_back,color: Colors.black,),
                ),
                SizedBox(width: 2,),
                CircleAvatar(
                  backgroundImage: NetworkImage("<https://randomuser.me/api/portraits/men/5.jpg>"),
                  maxRadius: 20,
                ),
                SizedBox(width: 12,),
                Expanded(
                  child: Column(
                    crossAxisAlignment: CrossAxisAlignment.start,
                    mainAxisAlignment: MainAxisAlignment.center,
                    children: <Widget>[
                      Text("Kriss Benwat",style: TextStyle( fontSize: 16 ,fontWeight: FontWeight.w600),),
                      SizedBox(height: 6,),
                      Text("Online",style: TextStyle(color: Colors.grey.shade600, fontSize: 13),),
                    ],
                  ),
                ),
                Icon(Icons.settings,color: Colors.black54,),
              ],
            ),
          ),
        ),
      ),
      body: Container()
    );
Comment

PREVIOUS NEXT
Code Example
Dart :: what is map in dart 
Dart :: flutter column width 
Dart :: flutter image size percentage 
Dart :: dart length 
Dart :: round border container flutter 
Swift :: add shadow to collection view cell swift 
Swift :: swift ui debug print 
Swift :: how to change the font of buttons programmatically swift 
Swift :: uistackview insets 
Swift :: swift create label programmatically 
Swift :: swift firebase read key in autoKey 
Swift :: remove checkmark when selecting the cell again swift 5 
Swift :: swiftui slider 
Swift :: use timer swift 
Swift :: ionic Library not found for -lGoogleToolboxForMac 
Swift :: swift get max of two numbers 
Swift :: how to download swift 
Swift :: swiftui foreach 
Swift :: swift collection view check if you are at the bottom 
Swift :: swift date difference in days 
Swift :: swift print 
Swift :: swift sort array 
Swift :: set right bar button item swift 
Swift :: swift get slected row data in tableview cell 
Swift :: how to merge 2 arrays in swift 
Swift :: how to clear text file swift 
Swift :: Create a Swift Array 
Swift :: swift uilabel font bold 
Swift :: swift out of bound elelemnt 
Swift :: Create a Tuple 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =