From 2735fd37e491f9345e73a758c715224027cc06d6 Mon Sep 17 00:00:00 2001 From: Victor Shukuru Date: Mon, 16 May 2022 11:57:21 +0200 Subject: [PATCH] Update cards.md chaging FlatButton to TextButton , For Flutter new version --- docs/components/cards.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/components/cards.md b/docs/components/cards.md index aeef140..de7a0ed 100644 --- a/docs/components/cards.md +++ b/docs/components/cards.md @@ -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),),), ), ], ), @@ -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) @@ -235,13 +235,13 @@ class _MyHomePageState extends State { ButtonBar( alignment: MainAxisAlignment.start, children: [ - FlatButton( + TextButton( onPressed: () { // Perform some action }, child: const Text('ACTION 1'), ), - FlatButton( + TextButton( onPressed: () { // Perform some action }, @@ -275,13 +275,13 @@ class _MyHomePageState extends State { ButtonBar( alignment: MainAxisAlignment.start, children: [ - FlatButton( + TextButton( onPressed: () { // Perform some action }, child: const Text('ACTION 1'), ), - FlatButton( + TextButton( onPressed: () { // Perform some action },