Skip to content

Commit

Permalink
fixing linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Dante291 committed Nov 25, 2023
1 parent db858f3 commit 4d4c42f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ class AddPostViewModel extends BaseModel {
Future<String> convertToBase64(File file) async {
try {
final List<int> bytes = await file.readAsBytes();
String base64String = base64Encode(bytes);
base64String = base64String;
final String base64String = base64Encode(bytes);
print(base64String);
_imageInBase64 = base64String;
return base64String;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ class EditProfilePageViewModel extends BaseModel {
Future<String> convertToBase64(File file) async {
try {
final List<int> bytes = await file.readAsBytes();
String base64String = base64Encode(bytes);
base64String = base64String;
final String base64String = base64Encode(bytes);
print(base64String);
imageFile = base64String as File?;
return base64String;
Expand Down
2 changes: 1 addition & 1 deletion test/widget_tests/widgets/lang_switch_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import '../../helpers/test_locator.dart';

Widget createLanguageTile() {
return BaseView<AppLanguage>(
onModelReady: (_) => _.initialize(),
onModelReady: (model) => model.initialize(),
builder: (_, __, ___) => MaterialApp(
localizationsDelegates: [
const AppLocalizationsDelegate(isTest: true),
Expand Down

0 comments on commit 4d4c42f

Please sign in to comment.