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 bfc7707 commit c5454cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions test/easy_localization_context_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:io';

import 'package:easy_localization/easy_localization.dart';
import 'package:easy_localization/src/localization.dart';
import 'package:easy_logger/easy_logger.dart';
import 'package:flutter/material.dart';

Expand Down Expand Up @@ -29,8 +28,8 @@ class MyWidget extends StatelessWidget {
return Scaffold(
body: Column(
children: <Widget>[
Text('test').tr(context: context),
Text('day').plural(1, context: context),
Text('test').tr(),
Text('day').plural(1),
],
),
);
Expand Down
4 changes: 2 additions & 2 deletions test/easy_localization_widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class MyWidget extends StatelessWidget {
return Scaffold(
body: Column(
children: <Widget>[
Text('test').tr(context: context),
Text('day').plural(1, context: context),
Text('test').tr(),
Text('day').plural(1),
],
),
);
Expand Down

0 comments on commit c5454cf

Please sign in to comment.