mirror of
https://github.com/haorendashu/nowser.git
synced 2025-12-17 09:54:19 +01:00
some btn add coming toast
This commit is contained in:
@@ -171,9 +171,14 @@ class _AddRemoteAppRouter extends State<AddRemoteAppRouter> {
|
|||||||
unselectedLabelColor: textColor,
|
unselectedLabelColor: textColor,
|
||||||
indicatorColor: mainColor,
|
indicatorColor: mainColor,
|
||||||
tabs: [
|
tabs: [
|
||||||
Text(
|
GestureDetector(
|
||||||
"Connect by\nnostrconnect:// url",
|
child: Text(
|
||||||
textAlign: TextAlign.center,
|
"Connect by\nnostrconnect:// url",
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
),
|
||||||
|
onTap: () {
|
||||||
|
BotToast.showText(text: "Coming...");
|
||||||
|
},
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"Connect by\nbunker:// url",
|
"Connect by\nbunker:// url",
|
||||||
@@ -218,7 +223,9 @@ class _AddRemoteAppRouter extends State<AddRemoteAppRouter> {
|
|||||||
margin: EdgeInsets.only(top: Base.BASE_PADDING),
|
margin: EdgeInsets.only(top: Base.BASE_PADDING),
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: FilledButton(
|
child: FilledButton(
|
||||||
onPressed: () {},
|
onPressed: () {
|
||||||
|
BotToast.showText(text: "Coming...");
|
||||||
|
},
|
||||||
child: Text("Confirm"),
|
child: Text("Confirm"),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import 'package:bot_toast/bot_toast.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:nowser/const/base.dart';
|
import 'package:nowser/const/base.dart';
|
||||||
import 'package:nowser/const/router_path.dart';
|
import 'package:nowser/const/router_path.dart';
|
||||||
@@ -67,6 +68,7 @@ class _WebControlComponent extends State<WebControlComponent> {
|
|||||||
),
|
),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
webProvider.refresh(context);
|
webProvider.refresh(context);
|
||||||
|
widget.closeControl();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -77,6 +79,9 @@ class _WebControlComponent extends State<WebControlComponent> {
|
|||||||
Icons.disabled_visible_outlined,
|
Icons.disabled_visible_outlined,
|
||||||
size: 30,
|
size: 30,
|
||||||
),
|
),
|
||||||
|
onTap: () {
|
||||||
|
BotToast.showText(text: "Coming...");
|
||||||
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -97,7 +102,7 @@ class _WebControlComponent extends State<WebControlComponent> {
|
|||||||
var url =
|
var url =
|
||||||
await RouterUtil.router(context, RouterPath.BOOKMARK);
|
await RouterUtil.router(context, RouterPath.BOOKMARK);
|
||||||
if (webProvider.currentGoTo(url)) {
|
if (webProvider.currentGoTo(url)) {
|
||||||
RouterUtil.back(context);
|
widget.closeControl();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@@ -129,7 +134,7 @@ class _WebControlComponent extends State<WebControlComponent> {
|
|||||||
var url =
|
var url =
|
||||||
await RouterUtil.router(context, RouterPath.HISTORY);
|
await RouterUtil.router(context, RouterPath.HISTORY);
|
||||||
if (webProvider.currentGoTo(url)) {
|
if (webProvider.currentGoTo(url)) {
|
||||||
RouterUtil.back(context);
|
widget.closeControl();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@@ -141,6 +146,9 @@ class _WebControlComponent extends State<WebControlComponent> {
|
|||||||
Icons.download,
|
Icons.download,
|
||||||
size: 30,
|
size: 30,
|
||||||
),
|
),
|
||||||
|
onTap: () {
|
||||||
|
BotToast.showText(text: "Coming...");
|
||||||
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -181,6 +181,9 @@ class _MeRouter extends CustState<MeRouter> {
|
|||||||
num: downloadNum,
|
num: downloadNum,
|
||||||
name: "Download",
|
name: "Download",
|
||||||
iconData: Icons.download,
|
iconData: Icons.download,
|
||||||
|
onTap: () {
|
||||||
|
BotToast.showText(text: "Coming...");
|
||||||
|
},
|
||||||
));
|
));
|
||||||
// webItemList.add(MeRouterWebItemComponent(
|
// webItemList.add(MeRouterWebItemComponent(
|
||||||
// num: 102,
|
// num: 102,
|
||||||
|
|||||||
Reference in New Issue
Block a user