Created
November 18, 2020 04:00
-
-
Save rurickdev/9ecf93f82896653f5b72b3aabe72e234 to your computer and use it in GitHub Desktop.
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/material.dart'; | |
final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
theme: ThemeData.dark().copyWith(scaffoldBackgroundColor: darkBlue), | |
debugShowCheckedModeBanner: false, | |
home: Scaffold( | |
appBar: AppBar( | |
title: Text('Icon Preview'), | |
), | |
backgroundColor: Colors.white, | |
body: Center( | |
// The icons widget could be styled | |
child: Icon( | |
Icons.ac_unit, // iconData value | |
color: Colors.red, | |
size: 96.0, // logical pixel size as double value | |
semanticLabel: 'ac unit' // semantic text | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment