-
Notifications
You must be signed in to change notification settings - Fork 0
/
outline_button.dart
35 lines (30 loc) · 1.1 KB
/
outline_button.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import 'package:flutter/material.dart';
class OutlineButton extends StatelessWidget {
final String text;
final Function() onPressed;
const OutlineButton({required this.text, required this.onPressed, Key? key})
: super(key: key);
@override
Widget build(BuildContext context) {
const primaryColor = Color(0xff2749FD);
const double borderRadius = 40;
return OutlinedButton(
onPressed: () {},
child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
Text(
"Sign Out",
style: TextStyle(
fontSize: 24, fontWeight: FontWeight.w300, color: primaryColor),
),
Icon(Icons.arrow_forward, color: primaryColor)
]),
style: ButtonStyle(
side: MaterialStateProperty.all(
BorderSide(color: primaryColor, width: 1.4)),
padding: MaterialStateProperty.all(
EdgeInsets.symmetric(vertical: 20, horizontal: 50)),
shape: MaterialStateProperty.all(RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(borderRadius))))),
);
}
}