block news flutter

 Container(

            padding: const EdgeInsets.symmetric(

              vertical: 10.0,

              horizontal: 15.0,

            ),

            child: Row(

              crossAxisAlignment: CrossAxisAlignment.start,

              children: <Widget>[

                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(

                            color: MyColors.littleImportant(),

                          ),

                        ),

                        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>[

                            Expanded(

                              child: Text(

                                'Hospital 19',

                                maxLines: 1,

                                overflow: TextOverflow.ellipsis,

                                style: TextStyle(

                                  fontSize: 12.0,

                                  color: Colors.black54,

                                  fontWeight: FontWeight.w400,

                                  fontStyle: FontStyle.italic,

                                ),

                              ),

                            ),

                            Container(

                              width: 80.0,

                              child: Text(

                                '12.10.2020',

                                style: TextStyle(

                                  fontSize: 12.0,

                                  color: MyColors.littleImportant(),

                                ),

                                textAlign: TextAlign.right,

                              ),

                            ),

                          ],

                        ),

                      ],

                    ),

                  ),

                ),

                Align(

                  alignment: Alignment.topCenter,

                  child: Container(

                    width: 32.0,

                    height: 32.0,

                    child: IconButton(

                      padding: const EdgeInsets.all(4.0),

                      color: Colors.black,

                      onPressed: () {


                      },

                      icon: ImageIcon(

                        AssetImage('assets/images/bookmark_active.png',

                        ),

                        color: MyColors.inActiveIcon(),

                      ),

                    ),

                  ),

                ),

              ],

            ),

          )

Comments