Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.76 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. class Category extends StatelessWidget {
  4.   @override
  5.   Widget build(BuildContext context) {
  6.     return Material(
  7.       child: Center(
  8.         child: Container(
  9.           color: Colors.greenAccent,
  10.           height: 400.0,
  11.           width: 300.0,
  12.           child: InkWell(
  13.             borderRadius: BorderRadius.circular(10.0),
  14.             highlightColor: Colors.red,
  15.             splashColor: Colors.red,
  16.             onTap: () => print('clicked77'),
  17.             child: Row(children: <Widget>[
  18.               Icon(Icons.cake, size: 60.0),
  19.               Text(
  20.                 'Cake',
  21.                 textAlign: TextAlign.center,
  22.               ),
  23.             ]),
  24.           ),
  25.         ),
  26.       ),
  27.     );
  28.   }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement