“Flatbutton Border Flutter” Kode Jawaban

Bentuk bulat tombol datar

new OutlineButton(
  child: new Text("Button text"),
  onPressed: null,
  shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(30.0))
)
Jittery Jackal

Flutter Diuraikan Batas Radius Perbatasan

OutlinedButton(
  child: Text('Woolha.com'),
  style: OutlinedButton.styleFrom(
    primary: Colors.white,
    backgroundColor: Colors.teal,
    shape: const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(10))),
  ),
)
Arin Faraj

Radius perbatasan kancing berkibar

shape: RoundedRectangleBorder(
  borderRadius: BorderRadius.circular(18.0),
  side: BorderSide(color: Colors.red)
),
Evil Eel

Flatbutton Border Flutter

// It Does Possible!
FlatButton(
          shape: RoundedRectangleBorder(side: BorderSide(
            color: Colors.blue,
            width: 1,
            style: BorderStyle.solid
          ),
          borderRadius: BorderRadius.circular(50)),
          onPressed: null,
          child: Text('Button', style: TextStyle(color: Colors.blue)
          ),
          textColor: MyColor.white,
        )
The Biton

Jawaban yang mirip dengan “Flatbutton Border Flutter”

Pertanyaan yang mirip dengan “Flatbutton Border Flutter”

Lebih banyak jawaban terkait untuk “Flatbutton Border Flutter” di Dart

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya