Advertisement
Guest User

button.dart

a guest
Jul 11th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.09 KB | None | 0 0
  1. import 'package:Trainingku.id/_ConstantString/Pallete.dart';
  2. import 'package:flutter/material.dart';
  3.  
  4. class Button extends StatefulWidget {
  5.   @override
  6.   _ButtonCreateState createState() => _ButtonCreateState();
  7. }
  8.  
  9. class _ButtonCreateState extends State<Button> {
  10.   @override
  11.   Widget build(BuildContext context) {
  12.     return Padding(
  13.       padding: EdgeInsets.only(top: 15, bottom: 10, left: 40, right: 40),
  14.       child: Center(
  15.         child: ButtonTheme(
  16.           minWidth: double.infinity,
  17.           child: OutlineButton(
  18.             color: Pallete.secondary_button,
  19.             padding: EdgeInsets.only(top: 17, bottom: 17),
  20.             child: Text("Registrasi",
  21.                 style: TextStyle(
  22.                   fontFamily: "Barlow",
  23.                   fontWeight: FontWeight.bold,
  24.                   fontSize: 20,
  25.                   color: Pallete.secondary_button_text,
  26.                 )),
  27.             onPressed: () {},
  28.             shape: new RoundedRectangleBorder(
  29.                 borderRadius: new BorderRadius.circular(10.0)),
  30.           ),
  31.         ),
  32.       ),
  33.     );
  34.   }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement