mirrored_repositories/calorica/lib/widgets
import 'package:calory_calc/design/theme.dart';
import 'package:calory_calc/common/theme/theme.dart';
import 'package:flutter/material.dart';

getFlatNavigationButton(title, route, context) {
  return InkWell(
    splashColor: CustomTheme.mainColor,
    child: Row(children: <Widget>[
      Padding(
        padding: EdgeInsets.only(
          right: 5,
        ),
        child: Text(
          title,
          style: DesignTheme.labelTextBiggerBlack,
        ),
      ),
      Icon(Icons.chevron_right, color: CustomTheme.mainColor),
    ]),
    onTap: () {
      Navigator.pushNamed(context, route);
    },
  );
}
