import 'package:absenkuv3/UI/Template/style.dart';
import 'package:flutter/material.dart';

class TemplateButtonAkun extends StatelessWidget {
  var icon;
  String title;
  var onClick;
  TemplateButtonAkun({this.icon, this.title = '', this.onClick});

  @override
  Widget build(BuildContext context) {
    return
      GestureDetector(
          onTap: onClick,
          child: Container(
          decoration: CustomStyle.boxDecoration,
          child: ListTile(
            leading: icon,
            title: Text(
              title,
              style: TextStyle(fontSize: CustomStyle.fontSizeSmall),
            ),
            trailing: Icon(
              Icons.arrow_forward_ios,
              size: 20,
              color: Colors.blueAccent,
            ),
          ),
        )
      );

  }
}
