Created
May 7, 2020 16:18
-
-
Save CoderJava/d1d29e0862b4ca26de6784be3939fa12 to your computer and use it in GitHub Desktop.
Widget RaisedButton
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| void main() => runApp(App()); | |
| class App extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| home: HomePage(), | |
| ); | |
| } | |
| } | |
| class HomePage extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( | |
| appBar: AppBar( | |
| title: Text('Flutter Demo'), | |
| ), | |
| body: RaisedButton( | |
| child: Text('Tap Me'), | |
| onPressed: () { | |
| debugPrint('Button Tap Me tapped'); | |
| }, | |
| ), | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment