Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2. import 'package:solution_02_category_widget/category.dart';
  3.  
  4. const _categoryName = 'Cake';
  5. const _categoryIcon = Icons.cake;
  6. const _categoryColor = Colors.green;
  7.  
  8. void main() {
  9. runApp(UnitConverterApp());
  10. }
  11.  
  12. class UnitConverterApp extends StatelessWidget {
  13. @override
  14. Widget build(BuildContext context) {
  15. return MaterialApp(
  16. debugShowCheckedModeBanner: false,
  17. title: 'Unit Converter',
  18. home: Scaffold(
  19. backgroundColor: Colors.green[100],
  20. body: Center(
  21. child: Category(
  22. name: _categoryName,
  23. color: _categoryColor,
  24. iconLocation: _categoryIcon,
  25. ),
  26. ),
  27. ),
  28. );
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement