Skip to content

Commit

Permalink
adding links to glowbom
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-i committed Mar 20, 2024
1 parent beae37b commit 4b28963
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions app/lib/views/widgets/new_message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import 'package:flutter/foundation.dart';
import 'package:glowby/views/screens/global_settings.dart';
import 'package:glowby/views/widgets/paint_window.dart';
import 'package:glowby/utils/utils.dart';
import 'package:url_launcher/url_launcher_string.dart';

import 'message.dart';
import '../../services/openai_api.dart';
Expand Down Expand Up @@ -294,13 +295,20 @@ class NewMessageState extends State<NewMessage> {
}

/* method for opening a paint window */
void _openPaintWindow() {
showDialog(
void _openPaintWindow() async {
const url = 'https://glowbom.com/draw/';
if (await canLaunchUrlString(url)) {
await launchUrlString(url);
} else {
throw 'Could not launch $url';
}

/*showDialog(
context: context,
builder: (BuildContext context) {
return const PaintWindow();
},
);
);*/
}

@override
Expand Down

0 comments on commit 4b28963

Please sign in to comment.