Skip to content

Commit

Permalink
Upgrading flutter to the latest stable version v3.16.0 (#2140)
Browse files Browse the repository at this point in the history
* Upgrading flutter to the latest stable version

* fixing linting errors

* fixing failing tests

* fixing tests

* fixing render overflow bug

* fixing lint errors

* fixing test

* fixing test

* fixing test

* fixing edit event page test

* fixing edit event page test

* fixing edit event page test
  • Loading branch information
Dante291 authored Nov 26, 2023
1 parent 47e9b90 commit 1d4113d
Show file tree
Hide file tree
Showing 16 changed files with 592 additions and 571 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
java-version: '12.0'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.0'
flutter-version: '3.16.0'
channel: 'stable' # or: 'beta', 'dev' or 'master'
- name: Set default branch.
run: git remote set-head origin --auto
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
java-version: '12.0'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.0'
flutter-version: '3.16.0'
channel: 'stable' # or: 'beta', 'dev' or 'master'
- name: Running pub get to fetch dependencies
run: flutter pub get
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
java-version: '12.0'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.0'
flutter-version: '3.16.0'
channel: 'stable' # or: 'beta', 'dev' or 'master'
- name: Running pub get to fetch dependencies
run: flutter pub get
Expand All @@ -152,7 +152,7 @@ jobs:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.0'
flutter-version: '3.16.0'
channel: 'stable' # or: 'beta', 'dev' or 'master'
architecture: x64
- name: Building for ios
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
java-version: '12.0'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.0'
flutter-version: '3.16.0'
channel: 'stable' # or: 'beta', 'dev' or 'master'
- name: Running pub get in talawa_lint
run: cd talawa_lint && flutter pub get && cd ..
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
java-version: '12.0'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.0'
flutter-version: '3.16.0'
channel: 'stable'
- uses: dart-lang/setup-dart@v1
with:
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
java-version: '12.0'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.0'
flutter-version: '3.16.0'
channel: 'stable' # or: 'beta', 'dev' or 'master'
- name: Running pub get in talawa_lint
run: cd talawa_lint && flutter pub get && cd ..
Expand Down Expand Up @@ -198,7 +198,7 @@ jobs:
java-version: '12.0'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.0'
flutter-version: '3.16.0'
channel: 'stable' # or: 'beta', 'dev' or 'master'
- name: Running pub get in talawa_lint
run: cd talawa_lint && flutter pub get && cd ..
Expand Down Expand Up @@ -230,7 +230,7 @@ jobs:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.0'
flutter-version: '3.16.0'
channel: 'stable' # or: 'beta', 'dev' or 'master'
architecture: x64
- name: Building for ios
Expand Down
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 lib/widgets/pinned_post.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class PinnedPost extends StatelessWidget {
return Container(
child: pinnedPosts.isNotEmpty
? SizedBox(
height: SizeConfig.screenHeight! * 0.25,
height: SizeConfig.screenHeight! * 0.28,
child: ListView.builder(
itemCount: pinnedPosts.length,
shrinkWrap: true,
Expand Down
Loading

0 comments on commit 1d4113d

Please sign in to comment.