Skip to content

Commit

Permalink
Merge pull request #27 from yihong1120/feature/dashboard-display
Browse files Browse the repository at this point in the history
Feature/dashboard display
  • Loading branch information
yihong1120 authored Dec 30, 2023
2 parents 5238499 + 98eef80 commit 5a2aed4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'screens/map/routes.dart' as map_routes;
import 'screens/reports/routes.dart' as reports_routes;
import 'screens/chat/routes.dart' as chat_routes;
import 'screens/accounts/routes.dart' as account_routes;
import 'components/navigation_drawer.dart'
import 'components/navigation_drawer.dart';

Future main() async {
await dotenv.load(fileName: ".env"); // 加載.env文件
Expand Down
2 changes: 1 addition & 1 deletion lib/services/social_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class SocialService {

// 使用 url_launcher 打开浏览器窗口
if (await canLaunchUrl(loginUrl)) {
await launch(loginUrl);
await launchUrl(loginUrl);
} else {
throw 'Could not launch $loginUrl';
}
Expand Down

0 comments on commit 5a2aed4

Please sign in to comment.