Initial commit
This commit is contained in:
35
lib/widgets/widget_button.dart
Normal file
35
lib/widgets/widget_button.dart
Normal file
@@ -0,0 +1,35 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'button_styles.dart';
|
||||
class Botoes extends StatelessWidget {
|
||||
final String texto;
|
||||
final Function onPressed;
|
||||
Botoes(this.texto, {this.onPressed});
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ElevatedButton(
|
||||
child:Text(
|
||||
texto,
|
||||
style: TextStyle(
|
||||
fontSize: 20,
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
onPressed: onPressed
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class BotaoCustom extends StatelessWidget {
|
||||
final String texto;
|
||||
final Function onPressed;
|
||||
BotaoCustom(this.texto, {this.onPressed});
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ElevatedButton(
|
||||
style: ButtonStyles().btnS,
|
||||
child:Text(texto, style: ButtonStyles().txS),
|
||||
onPressed: onPressed
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user