Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Update cards.md chaging FlatButton to TextButton , For Flutter new version #112

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions docs/components/cards.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,19 @@ The example code below generates the card:
ButtonBar(
alignment: MainAxisAlignment.start,
children: [
FlatButton(
textColor: const Color(0xFF6200EE),
TextButton(

onPressed: () {
// Perform some action
},
child: const Text('ACTION 1'),
child: const Text('ACTION 1',style:TextStyle(color:const Color(0xFF6200EE),),),
),
FlatButton(
textColor: const Color(0xFF6200EE),
TextButton(

onPressed: () {
// Perform some action
},
child: const Text('ACTION 2'),
child: const Text('ACTION 2',style:TextStyle(color:const Color(0xFF6200EE),),),
),
],
),
Expand Down Expand Up @@ -159,7 +159,7 @@ The example code below generates the card:

|   | Property |
|---|---|
| **Desc. 1** | Can be made using `ButtonBar`, within `ButtonBar` use `FlatButtons` |
| **Desc. 1** | Can be made using `ButtonBar`, within `ButtonBar` use `TextButtons` |

#### Icon (optional)

Expand Down Expand Up @@ -235,13 +235,13 @@ class _MyHomePageState extends State<MyHomePage> {
ButtonBar(
alignment: MainAxisAlignment.start,
children: [
FlatButton(
TextButton(
onPressed: () {
// Perform some action
},
child: const Text('ACTION 1'),
),
FlatButton(
TextButton(
onPressed: () {
// Perform some action
},
Expand Down Expand Up @@ -275,13 +275,13 @@ class _MyHomePageState extends State<MyHomePage> {
ButtonBar(
alignment: MainAxisAlignment.start,
children: [
FlatButton(
TextButton(
onPressed: () {
// Perform some action
},
child: const Text('ACTION 1'),
),
FlatButton(
TextButton(
onPressed: () {
// Perform some action
},
Expand Down