Skip to content

Commit

Permalink
fix: #400 replace some url
Browse files Browse the repository at this point in the history
  • Loading branch information
ppolariss committed Sep 1, 2024
1 parent 9934093 commit da091c5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/page/danke/course_review_editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ class CourseReviewEditorWidgetState extends State<CourseReviewEditorWidget> {
PlatformTextButton(
child: Text(S.of(context).community_convention),
onPressed: () => BrowserUtil.openUrl(
"https://www.fduhole.com/#/licence", context),
"https://www.fduhole.com/doc", context),
)
],
),
Expand Down
6 changes: 4 additions & 2 deletions lib/page/forum/hole_detail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ class BBSPostDetailState extends State<BBSPostDetail> {

// construct the uri of the floor and copy it to clipboard
Future<bool> _shareFloorAsUri(int? floorId) async {
String uri = 'https://www.fduhole.com/floor/$floorId';
// String uri = 'https://www.fduhole.com/floor/$floorId';
String uri = '##$floorId';
try {
if (floorId == null) return false;
await FlutterClipboard.copy(uri);
Expand All @@ -164,7 +165,8 @@ class BBSPostDetailState extends State<BBSPostDetail> {

// construct the uri of the hole and copy it to clipboard
Future<bool> _shareHoleAsUri(int? holeId) async {
String uri = 'https://www.fduhole.com/hole/$holeId';
// String uri = 'https://www.fduhole.com/hole/$holeId';
String uri = '#$holeId';
try {
if (holeId == null) return false;
await FlutterClipboard.copy(uri);
Expand Down
2 changes: 1 addition & 1 deletion lib/page/forum/hole_editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ class BBSEditorWidgetState extends State<BBSEditorWidget> {
PlatformTextButton(
child: Text(S.of(context).community_convention),
onPressed: () => BrowserUtil.openUrl(
"https://www.fduhole.com/#/licence", context),
"https://www.fduhole.com/doc", context),
),
PlatformTextButton(
child: Text(S.of(context).sticker),
Expand Down
2 changes: 1 addition & 1 deletion lib/page/forum/hole_login.dart
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ class OTLicenseBodyState extends State<OTLicenseBody> {
_agreed = newValue!;
if (_agreed) {
BrowserUtil.openUrl(
"https://www.fduhole.com/#/license", context);
"https://www.fduhole.com/doc", context);
}
});
}),
Expand Down
2 changes: 1 addition & 1 deletion lib/page/forum/quiz.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class OTQuizWidgetState extends State<OTQuizWidget> {
PlatformTextButton(
child: Text(S.of(context).community_convention),
onPressed: () => BrowserUtil.openUrl(
"https://www.fduhole.com/#/licence", context),
"https://www.fduhole.com/doc", context),
),
],
),
Expand Down

0 comments on commit da091c5

Please sign in to comment.