Skip to content

Instantly share code, notes, and snippets.

@ryanlid
Created February 4, 2020 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanlid/3c34c6ebc9ad707e42f8c684b871ed71 to your computer and use it in GitHub Desktop.
Save ryanlid/3c34c6ebc9ad707e42f8c684b871ed71 to your computer and use it in GitHub Desktop.
CupertinoButton 按钮组件
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