Search
 
SCRIPT & CODE EXAMPLE
 

DART

how to make unordered list in flutter

class MyList extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return new Column(
      children: <Widget>[
        new ListTile(
          leading: new MyBullet(),
          title: new Text('My first line'),
        ),
        new ListTile(
          leading: new MyBullet(),
          title: new Text('My second line'),
        )
      ],
    );
  }
}
class MyBullet extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return new Container(
    height: 20.0,
    width: 20.0,
    decoration: new BoxDecoration(
    color: Colors.black,
    shape: BoxShape.circle,
  ),
  );
  }
}
Comment

PREVIOUS NEXT
Code Example
Dart :: media query flutter 
Dart :: transform widget flutter 
Dart :: app bar textStyle flutter 
Dart :: flutter snackbar 
Dart :: flutter disable container 
Dart :: elevated Button Theme background color in flutter 
Dart :: string to int in dart 
Dart :: creating a stateful widget 
Dart :: bitmapdescriptor flutter 
Dart :: flutter auto size text 
Dart :: alertdialog padding flutter 
Dart :: dart key value pair list 
Dart :: spacer in singlechildscrollview 
Dart :: dart interfaces 
Dart :: Error: java.io.IOException: No such file or directory in android 11 
Dart :: flutter icondata 
Dart :: flutter periodic timer 
Dart :: special characters flutter 
Dart :: flutter crop captured image 
Dart :: Find string index inside a list flutter 
Dart :: the instance member cannot be accessed in an initializer 
Dart :: how to run dart code in vscode 
Dart :: dart 2d list join 
Dart :: create extention in dart 
Dart :: flutter longpress vibration 
Dart :: print $ symbol in dart 
Dart :: limited box flutter 
Swift :: format decimal place swift 
Swift :: show alert with textfield swift 
Swift :: swift open settings page 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =