Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
chivehao committed Aug 20, 2024
1 parent 19298a1 commit 66b8100
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ app.*.map.json
/android/app/profile
/android/app/release

**/generated**
**/Generated**
**generated**
**generated_**
**Generated**
.kotlin/
**build**
local.properties
.gradle/

11 changes: 5 additions & 6 deletions lib/subject/subject.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import 'package:ikaros/api/subject/model/Episode.dart';
import 'package:ikaros/api/subject/model/Subject.dart';
import 'package:ikaros/consts/subject_const.dart';
import 'package:ikaros/utils/url-utils.dart';
import 'package:url_launcher/url_launcher.dart';

class SubjectPage extends StatefulWidget {
final String? id;
Expand Down Expand Up @@ -97,11 +96,11 @@ class _SubjectState extends State<SubjectPage> {
}
var url =
"$_apiBaseUrl/console/#/subjects/subject/details/${widget.id}";
if (await canLaunchUrl(Uri.parse(url))) {
await launchUrl(Uri.parse(url));
} else {
throw 'Could not launch $url';
}
// if (await canLaunchUrl(Uri.parse(url))) {
// await launchUrl(Uri.parse(url));
// } else {
// throw 'Could not launch $url';
// }
},
icon: const Icon(
Icons.ac_unit_sharp,
Expand Down
3 changes: 1 addition & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 0.15.5+4
version: 0.15.5+6

environment:
sdk: '>=2.18.4 <=3.10.5'
Expand Down Expand Up @@ -49,7 +49,6 @@ dependencies:
wakelock: ^0.6.2
provider: ^6.0.5
go_router: ^14.2.3
url_launcher: ^6.3.0

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 66b8100

Please sign in to comment.