Created
February 4, 2020 09:45
-
-
Save ryanlid/3c34c6ebc9ad707e42f8c684b871ed71 to your computer and use it in GitHub Desktop.
CupertinoButton 按钮组件
This file contains 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/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp((MyApp())); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: "CupertinoButton 按钮组件", | |
home: Scaffold( | |
appBar: AppBar( | |
title: Text("CupertinoButton 按钮组件"), | |
), | |
body: Center( | |
child: CupertinoButton( | |
child: Text('CupertinoButton 按钮组件'), | |
color: Colors.blue, | |
onPressed: () {}, | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment