Skip to content

Commit

Permalink
create open guide button
Browse files Browse the repository at this point in the history
  • Loading branch information
cuikho210 committed Aug 19, 2024
1 parent 5a9d05e commit 93a4900
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions gui/lib/components/song_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:midi_to_mml/controller.dart';
import 'package:midi_to_mml/command_signals.dart';
import 'package:remixicon/remixicon.dart';
import 'package:gap/gap.dart';
import 'package:url_launcher/url_launcher.dart';

class SongOptions extends GetView<AppController> {
const SongOptions({ super.key });
Expand Down Expand Up @@ -37,6 +38,18 @@ class SongOptions extends GetView<AppController> {
)),

Expanded(child: ListView(children: [
Padding(
padding: const EdgeInsets.all(16),
child: OutlinedButton.icon(
onPressed: () {
final uri = Uri.parse("https://github.com/cuikho210/revelation-mobile-midi-to-mml?tab=readme-ov-file#song-options-guide");
launchUrl(uri);
},
label: const Text("Open Guide"),
icon: const Icon(Remix.question_line),
),
),

Obx(() => CheckboxListTile(
title: const Text("Auto boot velocity"),
value: controller.songOptions().autoBootVelocity,
Expand Down

0 comments on commit 93a4900

Please sign in to comment.