Flutter Tutorials

Flutter app development tutorials


flutter – OutlinedButton StadiumBorder

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



About Me

Flutter Developer

Design a site like this with WordPress.com
Get started