-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54499bc
commit 481b983
Showing
13 changed files
with
203 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import 'package:fluent_ui/fluent_ui.dart'; | ||
import 'package:inference/theme_fluent.dart'; | ||
import 'package:inference/widgets/elevation.dart'; | ||
import 'package:url_launcher/url_launcher.dart'; | ||
|
||
final Uri _url = Uri.parse('https://github.com/openvinotoolkit/openvino_testdrive/issues/new'); | ||
|
||
|
||
class FeedbackButton extends StatelessWidget { | ||
const FeedbackButton({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return MouseRegion( | ||
cursor: SystemMouseCursors.click, | ||
child: Elevation( | ||
elevation: 8, | ||
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(24)), | ||
child: IconButton( | ||
style: ButtonStyle( | ||
backgroundColor: WidgetStatePropertyAll(electricCoral.normal), | ||
foregroundColor: const WidgetStatePropertyAll(Colors.white), | ||
shape: WidgetStatePropertyAll(RoundedRectangleBorder(borderRadius: BorderRadius.circular(24))), | ||
padding: const WidgetStatePropertyAll(EdgeInsets.all(16.0)), | ||
), | ||
icon: const Icon(FluentIcons.megaphone, size: 16,), | ||
onPressed: () async { | ||
if (await canLaunchUrl(_url)) { | ||
await launchUrl(_url); | ||
} else { | ||
throw 'Could not launch $_url'; | ||
} | ||
}, | ||
), | ||
), | ||
); | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.