Skip to content

Commit

Permalink
feat: melhorias no widget de tabela
Browse files Browse the repository at this point in the history
  • Loading branch information
vitoramaral10 committed Nov 10, 2022
1 parent 9eaef20 commit 5b5041e
Show file tree
Hide file tree
Showing 9 changed files with 207 additions and 151 deletions.
36 changes: 18 additions & 18 deletions example/lib/pages/components/buttons_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,64 +75,64 @@ class ButtonsPage extends StatelessWidget {
children: [
BTButton(
onPressed: () => log('primary'),
text: 'Primary',
backgroundColor: BTColors.primary,
child: const Text('Primary'),
),
const SizedBox(
width: 8,
),
BTButton(
onPressed: () => log('secondary'),
text: 'Secondary',
backgroundColor: BTColors.secondary,
child: const Text('Secondary'),
),
const SizedBox(
width: 8,
),
BTButton(
onPressed: () => log('success'),
text: 'Success',
backgroundColor: BTColors.success,
child: const Text('Success'),
),
const SizedBox(
width: 8,
),
BTButton(
onPressed: () => log('danger'),
text: 'Danger',
backgroundColor: BTColors.danger,
child: const Text('Danger'),
),
const SizedBox(
width: 8,
),
BTButton(
onPressed: () => log('warning'),
text: 'Warning',
backgroundColor: BTColors.warning,
child: const Text('Warning'),
),
const SizedBox(
width: 8,
),
BTButton(
onPressed: () => log('info'),
text: 'Info',
backgroundColor: BTColors.info,
child: const Text('Info'),
),
const SizedBox(
width: 8,
),
BTButton(
onPressed: () => log('light'),
text: 'Light',
backgroundColor: BTColors.light,
child: const Text('Light'),
),
const SizedBox(
width: 8,
),
BTButton(
onPressed: () => log('dark'),
text: 'Dark',
backgroundColor: BTColors.dark,
child: const Text('Dark'),
),
const SizedBox(
width: 8,
Expand Down Expand Up @@ -343,17 +343,17 @@ BTButtonOutline(
BTButton(
lg: true,
onPressed: () => log('primary'),
text: 'Botão grande',
backgroundColor: BTColors.primary,
child: const Text('Botão grande'),
),
const SizedBox(
width: 8,
),
BTButton(
lg: true,
onPressed: () => log('secondary'),
text: 'Botão grande',
backgroundColor: BTColors.secondary,
child: const Text('Botão grande'),
),
],
),
Expand Down Expand Up @@ -382,17 +382,17 @@ BTButton(
BTButton(
sm: true,
onPressed: () => log('primary'),
text: 'Botão pequeno',
backgroundColor: BTColors.primary,
child: const Text('Botão pequeno'),
),
const SizedBox(
width: 8,
),
BTButton(
sm: true,
onPressed: () => log('secondary'),
text: 'Botão pequeno',
backgroundColor: BTColors.secondary,
child: const Text('Botão pequeno'),
),
],
),
Expand Down Expand Up @@ -429,15 +429,15 @@ BTButton(
body: Row(
children: const [
BTButton(
text: 'Botão principal',
backgroundColor: BTColors.primary,
child: Text('Botão principal'),
),
SizedBox(
width: 8,
),
BTButton(
text: 'Botão',
backgroundColor: BTColors.secondary,
child: Text('Botão'),
),
SizedBox(
width: 8,
Expand Down Expand Up @@ -488,15 +488,15 @@ BTButton(
body: Row(
children: const [
BTButton(
text: 'Botão principal',
backgroundColor: BTColors.primary,
child: Text('Botão principal'),
),
SizedBox(
width: 8,
),
BTButton(
text: 'Botão',
backgroundColor: BTColors.secondary,
child: Text('Botão'),
),
SizedBox(
width: 8,
Expand Down Expand Up @@ -549,16 +549,16 @@ BTButton(
children: [
BTButton(
onPressed: () => log('primary'),
text: 'Botão',
backgroundColor: BTColors.primary,
child: const Text('Botão'),
),
const SizedBox(
height: 8,
),
BTButton(
onPressed: () => log('primary'),
text: 'Botão',
backgroundColor: BTColors.primary,
child: const Text('Botão'),
),
],
),
Expand Down
Loading

0 comments on commit 5b5041e

Please sign in to comment.