Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mohamedashraf701/legacy_buttons
https://github.com/mohamedashraf701/legacy_buttons
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mohamedashraf701/legacy_buttons
- Owner: MohamedAshraf701
- License: mit
- Created: 2023-01-23T06:00:35.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-23T06:02:53.000Z (almost 2 years ago)
- Last Synced: 2024-10-22T06:49:11.139Z (3 months ago)
- Language: Dart
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# legacy_buttons
Use deprecated legacy buttons.
```RaisedButton``` ```FlatButton``` and ```OutlineButton```## Getting Started
### Import the package
```import'package:legacy_buttons/legacy_buttons.dart';```### LegacyRaisedButton
Use ```LegacyRaisedButton``` alternative to ```RaisedButton```
```
LegacyRaisedButton(
onPressed: () {
print("Clicked LegacyRaiseButton");
},
child: Text("Legacy Raised Button"));
```### LegacyFlatButton
Use ```LegacyFlatButton``` alternative to ```FlatButton```
```
LegacyFlatButton(
onPressed: () {
print("Clicked LegacyFlatButton");
},
child: Text("Legacy Flat Button"));
```### LegacyOutlineButton
Use ```LegacyOutlineButton``` alternative to ```OutlineButton```
```
LegacyOutlineButton(
onPressed: () {
print("Clicked LegacyOutlineButton");
},
child: Text("Legacy Outline Button"));
```Issues and pull requests are welcomed.