block people you may know flutter

 Container(

        padding: const EdgeInsets.symmetric(

          vertical: 10.0,

          horizontal: 15.0,

        ),

        child: Row(

          crossAxisAlignment: CrossAxisAlignment.start,

          children: <Widget>[

            ClipOval(

              child: Image(

                fit: BoxFit.cover,

                width: 90.0,

                height: 90.0,

                image: AssetImage('assets/images/no_photo_available.png'),

              ),

            ),

            SizedBox(

              width: 15.0,

            ),

            Expanded(

              child: Container(

                height: 90.0,

                child: Column(

                  crossAxisAlignment: CrossAxisAlignment.start,

                  children: <Widget>[

                    Text(

                      'Top News',

                      style: TextStyle(

                        fontSize: 14,

                        color: Colors.black54,

                      ),

                    ),

                    Spacer(),

                    Text(

                      'Flutter library to load and cache network images. Can also be used with placeholder and error widgets.',

                      maxLines: 2,

                      overflow: TextOverflow.ellipsis,

                      style: TextStyle(

                        fontSize: 16.0,

                        height: 1.2,

                      ),

                    ),

                    Spacer(),

                    Row(

                      children: <Widget>[

                        Container(

                          padding: EdgeInsets.all(10),

                          decoration: BoxDecoration(

                            borderRadius: BorderRadius.circular(100),

                            color: Colors.blue

                          ),

                          width: 80.0,

                          child: InkWell(

                            child: Text(

                              'Add Friend',

                              style: TextStyle(

                                fontSize: 12.0,

                                color: Colors.white,

                              ),

                              textAlign: TextAlign.center,

                            ),

                          ),

                        ),

                        Spacer(),

                        Container(

                          padding: EdgeInsets.all(10),

                          decoration: BoxDecoration(

                              borderRadius: BorderRadius.circular(100),

                              color: Colors.blueGrey

                          ),

                          width: 80.0,

                          child: InkWell(

                          onTap: (){


                          },

                            child: Text(

                              'Remove',

                              style: TextStyle(

                                fontSize: 12.0,

                                color: Colors.white,

                              ),

                              textAlign: TextAlign.center,

                            ),

                          ),

                        ),

                      ],

                    ),

                  ],

                ),

              ),

            ),


          ],

        ),

      )

Comments