Skip to content

Commit

Permalink
Updated the buttons which are now deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
chiranjeev kundu committed May 20, 2023
1 parent 0927876 commit e24e8de
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/components/add-wallet-button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class AddWalletButton extends StatelessWidget {

return Container(
width: 180,
child: FlatButton(
child: ElevatedButton(
onPressed: () {
_showBottomSheet(context);
},
Expand Down
6 changes: 3 additions & 3 deletions lib/components/bottom-navbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ class BitalarmBottomNavBar extends StatelessWidget {
items: [
BottomNavigationBarItem(
icon: Icon(Icons.favorite_border),
title: Text('Favorites'),
label: 'Favorites',
activeIcon: Icon(Icons.favorite)),
BottomNavigationBarItem(
icon: Icon(Icons.list),
title: Text('All'),
label: 'All',
activeIcon: Icon(Icons.trending_up)),
BottomNavigationBarItem(
icon: Icon(Icons.donut_large),
title: Text('Portfolio'),
label: 'Portfolio',
activeIcon: Icon(Icons.donut_small)),
],
currentIndex: ['favorites', 'toplist', 'portfolio']
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/portfolio/add-asset/add-asset.screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class _AddAssetScreenState extends State<AddAssetScreen> {
decoration:
InputDecoration(labelText: "Amount", hintText: '0.07'),
),
RaisedButton(
ElevatedButton(
child: Text('Add asset'),
onPressed: () {
_addAsset(context);
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/portfolio/add-asset/add-wallet.screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class _AddWalletScreenState extends State<AddWalletScreen> {
},
decoration: InputDecoration(labelText: 'Symbol'),
),
RaisedButton.icon(
ElevatedButton.icon(
onPressed: () {
_addWallet(context);
},
Expand Down

0 comments on commit e24e8de

Please sign in to comment.