Skip to content

Instantly share code, notes, and snippets.

@nitinmehtaa
Created April 28, 2019 20:09
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 nitinmehtaa/5e3eb8fe08f98854222ba39073b3dd60 to your computer and use it in GitHub Desktop.
Save nitinmehtaa/5e3eb8fe08f98854222ba39073b3dd60 to your computer and use it in GitHub Desktop.
Checking RaisedButton text style in Cupertino Widget and Material Widget - Flutter
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
Widget build(BuildContext context) {
return CupertinoApp(
home: HomeScreen(),
);
}
}
class HomeScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return CupertinoPageScaffold(
child: Center(
child: RaisedButton(
child: new Text(
'Hello there',
),
onPressed: () {},
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment