add gitea link

This commit is contained in:
poka 2023-02-16 22:02:44 +01:00
parent 90f720c12e
commit 612465c91e
6 changed files with 123 additions and 3 deletions

BIN
assets/gitea.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

@ -4,6 +4,7 @@ import 'package:bogui/widgets/parameters_sliders.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:url_launcher/url_launcher.dart';
// import 'package:flutter/gestures.dart';
// import 'dart:math';
@ -36,9 +37,44 @@ class _BoguiState extends ConsumerState<Bogui> {
Widget build(BuildContext context) {
final scrollController = ScrollController();
screenWidth = MediaQuery.of(context).size.width;
// screenHight = MediaQuery.of(context).size.height;
return Scaffold(
appBar: AppBar(
leading: Row(
children: [
const SizedBox(
width: 20,
),
InkWell(
onTap: () =>
launchUrl(Uri.parse('https://git.p2p.legal/librezo/bogui')),
child: Container(
height: 35,
decoration: BoxDecoration(
boxShadow: [
BoxShadow(
color: yellowC.withOpacity(0.4),
spreadRadius: 2,
blurRadius: 1,
offset:
const Offset(0, 0), // changes position of shadow
),
],
gradient: const RadialGradient(
center: Alignment(3, -3),
colors: [yellowC, orangeC],
radius: 3.4,
),
borderRadius: BorderRadius.circular(35),
// color: Colors.grey[400],
),
child: Image.asset(
'assets/gitea.png',
// color: yellowC,
scale: 45,
),
)),
],
),
bottomOpacity: 0.5,
backgroundColor: orangeC,
title: Center(

View File

@ -6,6 +6,10 @@
#include "generated_plugin_registrant.h"
#include <url_launcher_linux/url_launcher_plugin.h>
void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
}

View File

@ -3,6 +3,7 @@
#
list(APPEND FLUTTER_PLUGIN_LIST
url_launcher_linux
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST

View File

@ -91,6 +91,11 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
flutter_web_plugins:
dependency: transitive
description: flutter
source: sdk
version: "0.0.0"
http:
dependency: transitive
description:
@ -180,6 +185,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.8.2"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
sha256: dbf0f707c78beedc9200146ad3cb0ab4d5da13c246336987be6940f026500d3a
url: "https://pub.dev"
source: hosted
version: "2.1.3"
riverpod:
dependency: transitive
description:
@ -257,6 +270,70 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.3.1"
url_launcher:
dependency: "direct main"
description:
name: url_launcher
sha256: e8f2efc804810c0f2f5b485f49e7942179f56eabcfe81dce3387fec4bb55876b
url: "https://pub.dev"
source: hosted
version: "6.1.9"
url_launcher_android:
dependency: transitive
description:
name: url_launcher_android
sha256: "3e2f6dfd2c7d9cd123296cab8ef66cfc2c1a13f5845f42c7a0f365690a8a7dd1"
url: "https://pub.dev"
source: hosted
version: "6.0.23"
url_launcher_ios:
dependency: transitive
description:
name: url_launcher_ios
sha256: "0a5af0aefdd8cf820dd739886efb1637f1f24489900204f50984634c07a54815"
url: "https://pub.dev"
source: hosted
version: "6.1.0"
url_launcher_linux:
dependency: transitive
description:
name: url_launcher_linux
sha256: "318c42cba924e18180c029be69caf0a1a710191b9ec49bb42b5998fdcccee3cc"
url: "https://pub.dev"
source: hosted
version: "3.0.2"
url_launcher_macos:
dependency: transitive
description:
name: url_launcher_macos
sha256: "41988b55570df53b3dd2a7fc90c76756a963de6a8c5f8e113330cb35992e2094"
url: "https://pub.dev"
source: hosted
version: "3.0.2"
url_launcher_platform_interface:
dependency: transitive
description:
name: url_launcher_platform_interface
sha256: "4eae912628763eb48fc214522e58e942fd16ce195407dbf45638239523c759a6"
url: "https://pub.dev"
source: hosted
version: "2.1.1"
url_launcher_web:
dependency: transitive
description:
name: url_launcher_web
sha256: "44d79408ce9f07052095ef1f9a693c258d6373dc3944249374e30eff7219ccb0"
url: "https://pub.dev"
source: hosted
version: "2.0.14"
url_launcher_windows:
dependency: transitive
description:
name: url_launcher_windows
sha256: b6217370f8eb1fd85c8890c539f5a639a01ab209a36db82c921ebeacefc7a615
url: "https://pub.dev"
source: hosted
version: "3.0.3"
vector_math:
dependency: transitive
description:
@ -266,5 +343,5 @@ packages:
source: hosted
version: "2.1.4"
sdks:
dart: ">=2.18.6 <4.0.0"
flutter: ">=3.0.0"
dart: ">=2.18.6 <3.0.0"
flutter: ">=3.3.0"

View File

@ -21,6 +21,7 @@ dependencies:
flutter_hooks: ^0.18.0
flutter_riverpod: ^2.1.3
logger: ^1.1.0
url_launcher:
dev_dependencies:
flutter_test:
@ -35,6 +36,7 @@ flutter:
# To add assets to your application, add an assets section, like this:
assets:
- .env
- assets/
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware