Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- class Category extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Material(
- child: Center(
- child: Container(
- color: Colors.greenAccent,
- height: 400.0,
- width: 300.0,
- child: InkWell(
- borderRadius: BorderRadius.circular(10.0),
- highlightColor: Colors.red,
- splashColor: Colors.red,
- onTap: () => print('clicked77'),
- child: Row(children: <Widget>[
- Icon(Icons.cake, size: 60.0),
- Text(
- 'Cake',
- textAlign: TextAlign.center,
- ),
- ]),
- ),
- ),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement