mem_tile.dart 503 B

12345678910111213141516171819
  1. import 'package:flutter/material.dart';
  2. class MemTile extends StatelessWidget {
  3. final IconData leading;
  4. final String title;
  5. final VoidCallback action;
  6. MemTile({Key key, this.leading, this.title, this.action}) : super(key: key);
  7. @override
  8. Widget build(BuildContext context) {
  9. return ListTile(
  10. leading: Icon(leading),
  11. title: Text(title, style: TextStyle(color: Colors.black, fontSize: 16.0)),
  12. trailing: Icon(Icons.arrow_forward_ios),
  13. onTap: action,
  14. );
  15. }
  16. }