mirror of
https://github.com/haorendashu/nowser.git
synced 2025-12-17 09:54:19 +01:00
me page add back btn
This commit is contained in:
@@ -162,8 +162,8 @@ class _MeRouter extends CustState<MeRouter> {
|
|||||||
|
|
||||||
List<Widget> appWidgetList = [];
|
List<Widget> appWidgetList = [];
|
||||||
var appList = _appProvider.appList;
|
var appList = _appProvider.appList;
|
||||||
var length = appList.length;
|
var appListLength = appList.length;
|
||||||
for (var i = 0; i < length && i < 5; i++) {
|
for (var i = 0; i < appListLength && i < 5; i++) {
|
||||||
var app = appList[i];
|
var app = appList[i];
|
||||||
appWidgetList.add(Container(
|
appWidgetList.add(Container(
|
||||||
child: MeRouterAppItemComponent(app),
|
child: MeRouterAppItemComponent(app),
|
||||||
@@ -173,7 +173,7 @@ class _MeRouter extends CustState<MeRouter> {
|
|||||||
appWidgetList.add(Container(
|
appWidgetList.add(Container(
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: Text(
|
child: Text(
|
||||||
"Show more",
|
"Show more apps",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
decoration: TextDecoration.underline,
|
decoration: TextDecoration.underline,
|
||||||
),
|
),
|
||||||
@@ -206,7 +206,7 @@ class _MeRouter extends CustState<MeRouter> {
|
|||||||
logList.add(Container(
|
logList.add(Container(
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: Text(
|
child: Text(
|
||||||
"Show more",
|
"Show more logs",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
decoration: TextDecoration.underline,
|
decoration: TextDecoration.underline,
|
||||||
),
|
),
|
||||||
@@ -232,7 +232,7 @@ class _MeRouter extends CustState<MeRouter> {
|
|||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
left: Base.BASE_PADDING,
|
left: Base.BASE_PADDING,
|
||||||
right: Base.BASE_PADDING,
|
right: Base.BASE_PADDING,
|
||||||
top: mediaQueryData.padding.top + Base.BASE_PADDING,
|
top: mediaQueryData.padding.top + 30,
|
||||||
bottom: mediaQueryData.padding.bottom + Base.BASE_PADDING,
|
bottom: mediaQueryData.padding.bottom + Base.BASE_PADDING,
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
@@ -248,7 +248,34 @@ class _MeRouter extends CustState<MeRouter> {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
body: main,
|
body: Stack(
|
||||||
|
children: [
|
||||||
|
Positioned.fill(
|
||||||
|
top: 0,
|
||||||
|
bottom: 0,
|
||||||
|
left: 0,
|
||||||
|
right: 0,
|
||||||
|
child: main,
|
||||||
|
),
|
||||||
|
Positioned(
|
||||||
|
top: mediaQueryData.padding.top + Base.BASE_PADDING,
|
||||||
|
right: 20,
|
||||||
|
child: GestureDetector(
|
||||||
|
onTap: () {
|
||||||
|
RouterUtil.back(context);
|
||||||
|
},
|
||||||
|
child: Container(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
// border: Border.all(),
|
||||||
|
borderRadius: BorderRadius.circular(4),
|
||||||
|
color: themeData.hintColor.withOpacity(0.2)),
|
||||||
|
padding: EdgeInsets.all(4),
|
||||||
|
child: Icon(Icons.close),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user