UI优化.
This commit is contained in:
parent
9a0fc52c78
commit
ebeb5a3fc1
|
|
@ -21,7 +21,7 @@
|
||||||
<color name="dialog_gray">#E3E3E3</color>
|
<color name="dialog_gray">#E3E3E3</color>
|
||||||
<color name="step_view">#FF7125</color>
|
<color name="step_view">#FF7125</color>
|
||||||
|
|
||||||
<color name="test">#3E291C</color>
|
<color name="test">#00FFFFFF</color>
|
||||||
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ class NetworkConfig {
|
||||||
static int SELECT_INDEX = 0;
|
static int SELECT_INDEX = 0;
|
||||||
|
|
||||||
static List BASE_URLS = [
|
static List BASE_URLS = [
|
||||||
// "https://admin.shhuanmeng.com/",
|
"https://api.onelight.vip/",
|
||||||
"http://192.168.1.23:81/",
|
// "http://192.168.1.23:81/",
|
||||||
];
|
];
|
||||||
|
|
||||||
// static List BASE_URLS_AI = [
|
// static List BASE_URLS_AI = [
|
||||||
|
|
|
||||||
|
|
@ -242,7 +242,16 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||||
width: size.width,
|
width: size.width,
|
||||||
height: h50,
|
height: h50,
|
||||||
margin: EdgeInsets.only(left: r14, right: r14),
|
margin: EdgeInsets.only(left: r14, right: r14),
|
||||||
child: Row(
|
child: Stack(
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
height: h45,
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
border: Border.all(color: Color(0xFF3B3C3F)),
|
||||||
|
borderRadius: BorderRadius.all(Radius.circular(c4)),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Row(
|
||||||
children: [
|
children: [
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
|
|
@ -255,8 +264,8 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||||
height: h45,
|
height: h45,
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Color(pageIndex == 0 ? 0xFF0C0C0C : 0xFF17181A),
|
color: Color(pageIndex == 0 ? 0xFF0C0C0C : 0x00FFFFFF),
|
||||||
border: Border.all(color: Color(pageIndex == 0 ? 0xFF9C9C9C : 0xFF17181A), width: 1),
|
border: Border.all(color: Color(pageIndex == 0 ? 0xFF9C9C9C : 0x00FFFFFF), width: 1),
|
||||||
borderRadius: const BorderRadius.all(Radius.circular(4))),
|
borderRadius: const BorderRadius.all(Radius.circular(4))),
|
||||||
child: ShaderMask(
|
child: ShaderMask(
|
||||||
shaderCallback: (Rect bounds) {
|
shaderCallback: (Rect bounds) {
|
||||||
|
|
@ -297,8 +306,8 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||||
height: h45,
|
height: h45,
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Color(pageIndex == 1 ? 0xFF0C0C0C : 0xFF17181A),
|
color: Color(pageIndex == 1 ? 0xFF0C0C0C : 0x00FFFFFF),
|
||||||
border: Border.all(color: Color(pageIndex == 1 ? 0xFF9C9C9C : 0xFF17181A), width: 1),
|
border: Border.all(color: Color(pageIndex == 1 ? 0xFF9C9C9C : 0x00FFFFFF), width: 1),
|
||||||
borderRadius: BorderRadius.all(Radius.circular(c4))),
|
borderRadius: BorderRadius.all(Radius.circular(c4))),
|
||||||
child: ShaderMask(
|
child: ShaderMask(
|
||||||
shaderCallback: (Rect bounds) {
|
shaderCallback: (Rect bounds) {
|
||||||
|
|
@ -326,6 +335,8 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
Container(
|
Container(
|
||||||
|
|
|
||||||
|
|
@ -267,7 +267,7 @@ class _SearchPageState extends State<SearchPage> {
|
||||||
child: index != 0
|
child: index != 0
|
||||||
? Container(
|
? Container(
|
||||||
padding: EdgeInsets.symmetric(horizontal: s13, vertical: t4),
|
padding: EdgeInsets.symmetric(horizontal: s13, vertical: t4),
|
||||||
margin: EdgeInsets.only(right: l10),
|
margin: EdgeInsets.only(right: l10,bottom: b5),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Color(0xFF202530),
|
color: Color(0xFF202530),
|
||||||
borderRadius: BorderRadius.all(Radius.circular(t4)),
|
borderRadius: BorderRadius.all(Radius.circular(t4)),
|
||||||
|
|
@ -282,6 +282,7 @@ class _SearchPageState extends State<SearchPage> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
|
///热门搜索
|
||||||
Container(
|
Container(
|
||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
margin: EdgeInsets.only(top: h36),
|
margin: EdgeInsets.only(top: h36),
|
||||||
|
|
@ -296,7 +297,15 @@ class _SearchPageState extends State<SearchPage> {
|
||||||
child: Wrap(
|
child: Wrap(
|
||||||
children: List.generate(
|
children: List.generate(
|
||||||
gameHotSearch.length,
|
gameHotSearch.length,
|
||||||
(index) => Container(
|
(index) => GestureDetector(
|
||||||
|
onTap: () {
|
||||||
|
FunctionUtil.loading();
|
||||||
|
_viewModel.gameSearch(gameHotSearch[index]);
|
||||||
|
_searchController.text = gameHotSearch[index];
|
||||||
|
searchHistoryList.add(_searchController.text);
|
||||||
|
saveArrayToSharedPrefs(searchHistoryList);
|
||||||
|
},
|
||||||
|
child: Container(
|
||||||
width: size.width / 2 - l15 - l15,
|
width: size.width / 2 - l15 - l15,
|
||||||
margin: EdgeInsets.only(right: l10, top: l10),
|
margin: EdgeInsets.only(right: l10, top: l10),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|
@ -307,6 +316,7 @@ class _SearchPageState extends State<SearchPage> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user