What is this icon name? - flutter

I want to use this icon on my Flutter app, unfortunately I do not know the name. Someone could tell me what's the name?

the three points icon is:
Icon(Icons.more_horiz)
and you can reach the same shape over it like this:
Container(
padding: EdgeInsets.all(5),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(5),
border: Border.all(
color: Colors.black,
width: 1,
),
),
child: Icon(Icons.more_horiz),
),
this will result in something like this, I didn't compare them, so changing just the padding and border, and border radius values will get you there

Related

Flutter: Making a background for an icon

There are a few questions like this, but none seem to work for my use case. I am implementing a widget in the following way, where size is a passed in double:
Container(
margin: margin,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.white,
),
child: Icon(
Icons.verified,
color: ExtraColors.highlightColor,
size: size,
)),
Which is looking like:
Any idea what I can do to fit the white behind the icon? Padding does not seem to affect it, and shifting the sizes seems to throw the whole thing out of whack.
Thanks!
I think you are trying to make your circle transparent. So, just use this:
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.white.withOpacity(0),
)
or this,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.transparent,
)

How can I create this circles for my flutter UI?

I want to create those blue circles (you can see them on the picture), the app UI design was created with Figma.
I don't even know how to start, I'm new at flutter
Any ideas or tips?
You can start learning from flutter.dev.
There are many ways to do this. I am using Container with decoration
Container(
height: 70,
width: 70,
padding: EdgeInsets.all(10), //spacing using padding
decoration: BoxDecoration(
shape: BoxShape.circle,
border: Border.all(width: 5, color: Colors.blue),
),
child: const Material( //inner circle
color: Colors.green,
shape: CircleBorder(),
),
)
More about Container.

Custom Container border in flutter for message

I am new in flutter i don't know how to make a custom border kindly help me to generate this type of border.
Use BoxDecoration in Container
Container(
decoration: BoxDecoration(
color: Colors.white,
border: Border.all(color: Colors.red, width: 0.1),
borderRadius: BorderRadius.all(Radius.circular(5))),
child: Text("Your Child Widget")
),
),
There are many more thing in Container you just need to find over internet.

How to draw a dynamic height line in flutter?

I wanted to draw a dynamic height line, as shown in the given picture below
I did something line this using a continer with one sided border
Container(
child:(content goes here....)
margin: EdgeInsets.symmetric(horizontal:16+20.0),
decoration: BoxDecoration(
border: Border(
left: BorderSide(width: 2.0, color: Colors.lightBlue.shade600),
),
color: Colors.white,
),
)
but the issue is the corners(top and below) of the line is not rounded.
I want to draw a vertical line on the left side of my post, and on the right side goes the content.
You could try something like this:
IntrinsicHeight(
child: Row(
children: [
Container(
width: 5,
decoration: ShapeDecoration(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(5)),
color: const Color(0x7f9e9e9e),
),
),
Expanded(child: **content goes here**),
],
),
)
And here's a DartPad example for you: Example
Which will produce something like this:
Where the bar on the left will size automatically with the contents on the right.

How to put text in a circle in Flutter

I want to display a numerical text in a circle. I tried the following, but it looks fuzzy
Container(child: Text(len),
decoration: BoxDecoration(
shape: BoxShape.circle,
border: Border.all(width: 2)))
This is how it looks 👇. BTW it's number 2 in a circle.
CircleAvatar(
radius: 20,
child: Text('$value'),
),
If you want add spacing between the border and the Edge of the border, you can either add a Padding with EdgeInsets or reduce the fontSize of the Text
Visit the Flutter Docs for more information and an example.
Answer is somewhat obvious. Add this property to container padding: EdgeInsets.all(5)
Container(
width:40.0,
height:40.0,
child: Center(child:Text(len)),
decoration: BoxDecoration(
shape: BoxShape.circle,
border: Border.all(width: 2))),