Skip to content

Commit

Permalink
Edit: Made changes to follow the custom lints patter and updates the …
Browse files Browse the repository at this point in the history
…package
  • Loading branch information
vaidic-dodwani committed Nov 18, 2023
1 parent 4603ad1 commit aecdfb6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 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
6 changes: 3 additions & 3 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1017,10 +1017,10 @@ packages:
dependency: "direct dev"
description:
name: lint
sha256: f4bd4dbaa39f4ae8836f2d1275f2f32bc68b3a8cce0a0735dd1f7a601f06682a
sha256: "77b3777e8e9adca8e942da1e835882ae3248dfa00488a2ebbdbc1f1a4aa3f4a7"
url: "https://pub.dev"
source: hosted
version: "2.1.2"
version: "2.2.0"
logging:
dependency: transitive
description:
Expand Down Expand Up @@ -1826,5 +1826,5 @@ packages:
source: hosted
version: "3.1.2"
sdks:
dart: ">=3.1.0-185.0.dev <3.13.0"
dart: ">=3.1.0 <3.13.0"
flutter: ">=3.10.0"
5 changes: 1 addition & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ description: Welcome to the Talawa Project for the Palisadoes Foundation

publish_to: "none" # Remove this line if you wish to publish to pub.dev


version: 1.0.0+1

homepage: https://github.com/PalisadoesFoundation/talawa
Expand Down Expand Up @@ -38,7 +37,6 @@ dependencies:
firebase_messaging: ^14.7.3
firebase_messaging_platform_interface: ^4.5.13


flutter:
sdk: flutter
flutter_braintree: ^3.0.0
Expand Down Expand Up @@ -84,7 +82,6 @@ dependencies:
video_player: ^2.7.2
visibility_detector: ^0.4.0+2


dev_dependencies:
build_runner: ^2.4.6
custom_lint: 0.5.6
Expand All @@ -93,7 +90,7 @@ dev_dependencies:
hive_generator: ^2.0.1

json_serializable: ^6.7.1
lint: ^2.1.2
lint: ^2.2.0

mocktail_image_network: ^1.0.0
talawa_lint:
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: (appLanguageModel) => appLanguageModel.initialize(),
builder: (_, __, ___) => MaterialApp(
localizationsDelegates: [
const AppLocalizationsDelegate(isTest: true),
Expand Down

0 comments on commit aecdfb6

Please sign in to comment.