Skip to content

Commit

Permalink
fix:include json/ in pubspec
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-Roshan-lab committed Jan 17, 2024
1 parent 01ac584 commit 138d697
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 5 deletions.
8 changes: 6 additions & 2 deletions lib/pages/onboard.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:http/http.dart' as http;

class Onboard extends StatefulWidget {
const Onboard({super.key});
Expand All @@ -21,7 +22,7 @@ class _OnboardState extends State<Onboard> {
'BCA',
'BCA DS',
'MCA',
'M.Sc ADS',
'MSc ADS',
];

List<String> sections = [
Expand Down Expand Up @@ -343,7 +344,10 @@ class _OnboardState extends State<Onboard> {
//continue text_icon button
const SizedBox(height: 20),
TextButton(
onPressed: () {
onPressed: () async {
String fileName =
"${year.toString()}_${_class.toLowerCase()}_${_section.toLowerCase()}";
http.Response res = await http.get(Uri.parse('https://srmtt.livewires.tech/assets/json/$fileName'));
Navigator.pushReplacementNamed(context, '/home');
},
style: ButtonStyle(
Expand Down
6 changes: 3 additions & 3 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ packages:
source: hosted
version: "6.1.0"
http:
dependency: transitive
dependency: "direct main"
description:
name: http
sha256: d4872660c46d929f6b8a9ef4e7a7eff7e49bbf0c4ec3f385ee32df5119175139
sha256: a2bbf9d017fcced29139daa8ed2bba4ece450ab222871df93ca9eec6f80c34ba
url: "https://pub.dev"
source: hosted
version: "1.1.2"
version: "1.2.0"
http_parser:
dependency: transitive
description:
Expand Down
2 changes: 2 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ dependencies:
firebase_auth: ^4.16.0
firebase_core: ^2.24.2
shared_preferences: ^2.2.2
http: ^1.2.0


dev_dependencies:
Expand Down Expand Up @@ -67,6 +68,7 @@ flutter:
assets:
- assets/images/auth.png
- assets/images/google.png
- json/

# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware
Expand Down
Binary file modified web/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified web/icons/Icon-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified web/icons/Icon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified web/icons/Icon-maskable-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified web/icons/Icon-maskable-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 138d697

Please sign in to comment.