flushbar
flushbar copied to clipboard
Parameter names should be reversed.
/// The title displayed to the user final String title;
/// The message displayed to the user. final String message;
/// Replaces [title]. Although this accepts a [Widget], it is meant to receive [Text] or [RichText] final Widget titleText;
/// Replaces [message]. Although this accepts a [Widget], it is meant to receive [Text] or [RichText] final Widget messageText;
If this were to be consistent with Flutter naming schemes, we'd swap the names.
title should be a Widget
, and titleText
should be a String
. Take InputDecoration
for example.
@AndreHaueisen can you assign this issue to me?