Skip to content

Commit

Permalink
remove missed context from tr() and plural()
Browse files Browse the repository at this point in the history
  • Loading branch information
Overman775 authored and aissat committed Feb 20, 2021
1 parent 6da8bad commit 2ef586d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/src/public_ext.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import 'public.dart' as ez;
extension TextTranslateExtension on Text {
/// {@macro tr}
Text tr(
{BuildContext? context,
List<String>? args,
{List<String>? args,
Map<String, String>? namedArgs,
String? gender}) =>
Text(
Expand All @@ -38,8 +37,11 @@ extension TextTranslateExtension on Text {
textWidthBasis: textWidthBasis);

/// {@macro plural}
Text plural(num value,
{BuildContext? context, List<String>? args, NumberFormat? format}) =>
Text plural(
num value, {
List<String>? args,
NumberFormat? format,
}) =>
Text(
ez.plural(
data ?? '',
Expand Down

0 comments on commit 2ef586d

Please sign in to comment.