main.dart
import 'package:flutter/material.dart';
void main(){
runApp(
MaterialApp(
theme: ThemeData(primarySwatch: Colors.pink),
home: Scaffold(
appBar: AppBar(
title: const Text("OutlinedButton StadiumBorder")
),
body: Center(
child: OutlinedButton(
onPressed: (){},
child: const Text("Click Me"),
style: OutlinedButton.styleFrom(
fixedSize: const Size(200, 75),
shape: const StadiumBorder(),
side: BorderSide(
color: Colors.pink.shade100,
width: 1.5
)
)
),
)
),
),
);
}
More flutter tutorials
- flutter – OutlinedButton style
- flutter – OutlinedButton color
- flutter – How to create circular OutlinedButton
- flutter – OutlinedButton full width
- flutter – ListView example
- flutter – ListView horizontal height
- flutter – ListView remove item
- flutter – Container border radius
- flutter – Container gradient
- flutter – Container transform
- flutter – How to change TextButton background color
- flutter – How to change DropdownButton height
- flutter – Ink and InkWell example
- flutter – Stack alignment
- flutter – LinearProgressIndicator value color