'Having trouble recreating this card text?

I cant seem to get this quite right, any ideas how i can replicate this in flutter?enter image description here

enter image description here

You can see i cant quite get it right



Solution 1:[1]

I figured it out.

GestureDetector(
  onTap: () => print('feedback'),
  child: Card(
    shape: RoundedRectangleBorder(
      borderRadius: BorderRadius.circular(15.0),
    ),
    child: Container(
      child: Padding(
        padding: const EdgeInsets.all(20.0),
          child: Row(
            children: [
              Padding(
                padding: const EdgeInsets.only(
                    right: 15.0),
                  child: CircleAvatar(
                    backgroundColor:
                    AppThemes.mainColorGreen,
                    radius: 30,
                    child: Icon(
                      MdiIcons.commentQuoteOutline,
                      color: Colors.white,
                      size: 30,
                    ),
                  ),
              ),
              Flexible(
                child: Column(
                  crossAxisAlignment:
                  CrossAxisAlignment.start,
                  children: [
                    Text(
                      'Feedback',
                      style: TextStyle(
                        fontWeight: FontWeight.bold,
                        fontFamily: 'Open Sans',
                        fontSize: 15,
                        color: Colors.black,
                      ),
                    ),
                    Text(
                      'Have any general feedback for our app? Let us know here!'),
                  ],
                ),
              )
            ],
          ),
      ),
    ),
    color: Colors.white,
  ),
),

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dharman