Skip to content

Instantly share code, notes, and snippets.

@Classy-Bear
Last active December 7, 2021 15:48
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Classy-Bear/d1852dffe8c44a380bb431c8a9b3f7cf to your computer and use it in GitHub Desktop.
Save Classy-Bear/d1852dffe8c44a380bb431c8a9b3f7cf to your computer and use it in GitHub Desktop.
Change the shape property of the new Elevated Button
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: MyHomePage(),
);
}
}
class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: ElevatedButton(
onPressed: () {},
child: Text('Button'),
style: ButtonStyle(
shape: MaterialStateProperty.all<OutlinedBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.all(
Radius.circular(30.0),
),
)),
),
),
),
);
}
}
@apdayn
Copy link

apdayn commented Nov 25, 2021

thank you very match bro, you help me a lot

@pedroperegrinaa
Copy link

valeu mano, ajudou dmsss

@Classy-Bear
Copy link
Author

Glad I could help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment