Skip to content

Instantly share code, notes, and snippets.

@rurickdev
Created November 18, 2020 04:00
Show Gist options
  • Save rurickdev/9ecf93f82896653f5b72b3aabe72e234 to your computer and use it in GitHub Desktop.
Save rurickdev/9ecf93f82896653f5b72b3aabe72e234 to your computer and use it in GitHub Desktop.
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