Commit b4412ef6 authored by 关振斌's avatar 关振斌

update: uikit

parent 53a4b750
...@@ -72,10 +72,13 @@ ...@@ -72,10 +72,13 @@
<string>Main</string> <string>Main</string>
<key>UISupportedInterfaceOrientations</key> <key>UISupportedInterfaceOrientations</key>
<array> <array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortrait</string>
</array> </array>
<key>UISupportedInterfaceOrientations~ipad</key> <key>UISupportedInterfaceOrientations~ipad</key>
<array> <array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string> <string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string> <string>UIInterfaceOrientationPortraitUpsideDown</string>
......
...@@ -9,7 +9,8 @@ AppBar transparentAppBar({ ...@@ -9,7 +9,8 @@ AppBar transparentAppBar({
List<Widget>? actions, List<Widget>? actions,
}) { }) {
return AppBar( return AppBar(
backgroundColor: Color.fromARGB(0, 0, 0, 0), // Color.argb(255, 28, 28, 30)
backgroundColor: Color.fromARGB(255, 28, 28, 30),
// elevation: 2, // elevation: 2,
title: title, title: title,
elevation: 0, elevation: 0,
......
...@@ -117,7 +117,8 @@ class ApplicationPage extends GetView<ApplicationController> { ...@@ -117,7 +117,8 @@ class ApplicationPage extends GetView<ApplicationController> {
return Obx(() => BottomNavigationBar( return Obx(() => BottomNavigationBar(
// #363b48 // #363b48
backgroundColor: Color.fromARGB(120, 0, 0, 0), // Color.fromARGB(255, 28, 28, 30)
backgroundColor: Color.fromARGB(255, 28, 28, 30),
// //
// Color.fromARGB(255, 54, 59, 72), // Color.fromARGB(255, 54, 59, 72),
// Color.argb(255, 82, 88, 103) // Color.argb(255, 82, 88, 103)
...@@ -142,26 +143,27 @@ class ApplicationPage extends GetView<ApplicationController> { ...@@ -142,26 +143,27 @@ class ApplicationPage extends GetView<ApplicationController> {
final homeController = Get.find<HomeController>(); final homeController = Get.find<HomeController>();
return AnimatedAlign( return AnimatedAlign(
duration: Duration(milliseconds: 300), duration: Duration(milliseconds: 300),
alignment: controller.state.showBottomMenu ? Alignment.bottomCenter : const Alignment(0, 2), alignment: controller.state.showBottomMenu
? Alignment.bottomCenter
: const Alignment(0, 2),
child: Container( child: Container(
height: 180, height: 180,
padding: const EdgeInsets.fromLTRB(20, 20, 20, 100), padding: const EdgeInsets.fromLTRB(20, 20, 20, 100),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.black.withAlpha(180), color: Colors.black.withAlpha(180),
borderRadius: const BorderRadius.all(Radius.circular(20)) borderRadius: const BorderRadius.all(Radius.circular(20))),
),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [ children: [
Expanded(child: Expanded(
Container( child: Container(
height: 44, height: 44,
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(22), borderRadius: BorderRadius.circular(22),
gradient: LinearGradient( gradient: LinearGradient(
begin: Alignment.topCenter, begin: Alignment.topCenter,
end: Alignment.bottomCenter, end: Alignment.bottomCenter,
colors: [Color(0xFFbe6afb),Color(0xFF7965f8)], colors: [Color(0xFFbe6afb), Color(0xFF7965f8)],
), ),
), ),
child: TextButton( child: TextButton(
...@@ -172,8 +174,7 @@ class ApplicationPage extends GetView<ApplicationController> { ...@@ -172,8 +174,7 @@ class ApplicationPage extends GetView<ApplicationController> {
style: TextStyle(color: Colors.white), style: TextStyle(color: Colors.white),
), ),
), ),
)) ))),
),
SizedBox(width: 30), SizedBox(width: 30),
Expanded( Expanded(
child: Container( child: Container(
...@@ -183,7 +184,7 @@ class ApplicationPage extends GetView<ApplicationController> { ...@@ -183,7 +184,7 @@ class ApplicationPage extends GetView<ApplicationController> {
gradient: LinearGradient( gradient: LinearGradient(
begin: Alignment.topCenter, begin: Alignment.topCenter,
end: Alignment.bottomCenter, end: Alignment.bottomCenter,
colors: [Color(0xFFbe6afb),Color(0xFF7965f8)], colors: [Color(0xFFbe6afb), Color(0xFF7965f8)],
), ),
), ),
child: TextButton( child: TextButton(
...@@ -194,8 +195,7 @@ class ApplicationPage extends GetView<ApplicationController> { ...@@ -194,8 +195,7 @@ class ApplicationPage extends GetView<ApplicationController> {
style: TextStyle(color: Colors.white), style: TextStyle(color: Colors.white),
), ),
), ),
)) ))),
),
SizedBox(width: 30), SizedBox(width: 30),
Expanded( Expanded(
child: Container( child: Container(
...@@ -205,7 +205,7 @@ class ApplicationPage extends GetView<ApplicationController> { ...@@ -205,7 +205,7 @@ class ApplicationPage extends GetView<ApplicationController> {
gradient: LinearGradient( gradient: LinearGradient(
begin: Alignment.topCenter, begin: Alignment.topCenter,
end: Alignment.bottomCenter, end: Alignment.bottomCenter,
colors: [Color(0xFFbe6afb),Color(0xFF7965f8)], colors: [Color(0xFFbe6afb), Color(0xFF7965f8)],
), ),
), ),
child: TextButton( child: TextButton(
...@@ -216,8 +216,7 @@ class ApplicationPage extends GetView<ApplicationController> { ...@@ -216,8 +216,7 @@ class ApplicationPage extends GetView<ApplicationController> {
style: TextStyle(color: Colors.white), style: TextStyle(color: Colors.white),
), ),
), ),
)) ))),
),
], ],
), ),
), ),
...@@ -233,9 +232,10 @@ class ApplicationPage extends GetView<ApplicationController> { ...@@ -233,9 +232,10 @@ class ApplicationPage extends GetView<ApplicationController> {
children: [ children: [
Container( Container(
decoration: BoxDecoration( decoration: BoxDecoration(
image: DecorationImage( color: Color.fromARGB(255, 28, 28, 30),
image: Image.asset("assets/images/background.png").image, // image: DecorationImage(
fit: BoxFit.cover), // image: Image.asset("assets/images/background.png").image,
// fit: BoxFit.cover),
), ),
child: Scaffold( child: Scaffold(
// resizeToAvoidBottomInset: false, // resizeToAvoidBottomInset: false,
......
...@@ -47,11 +47,9 @@ class _HomePageState extends State<_HomePage> ...@@ -47,11 +47,9 @@ class _HomePageState extends State<_HomePage>
HomeController get controller => Get.find<HomeController>(); HomeController get controller => Get.find<HomeController>();
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final cc = controller;//Get.put(HomeController()); final cc = controller; //Get.put(HomeController());
return Obx(() => Scaffold( return Obx(() => Scaffold(
resizeToAvoidBottomInset: false, resizeToAvoidBottomInset: false,
backgroundColor: Color.fromARGB(0, 0, 0, 0), backgroundColor: Color.fromARGB(0, 0, 0, 0),
...@@ -195,7 +193,8 @@ class _HomePageState extends State<_HomePage> ...@@ -195,7 +193,8 @@ class _HomePageState extends State<_HomePage>
isTextInput: cc.state.isInputText, isTextInput: cc.state.isInputText,
inputTextStyle: TextStyle(color: Colors.white), inputTextStyle: TextStyle(color: Colors.white),
inputToolbarStyle: BoxDecoration( inputToolbarStyle: BoxDecoration(
color: Color.fromARGB(120, 0, 0, 0), // 255, 28, 28, 30
color: Color.fromARGB(255, 28, 28, 30),
// Color.fromARGB(0, 54, 59, 72), // Color.fromARGB(0, 54, 59, 72),
borderRadius: BorderRadius.only( borderRadius: BorderRadius.only(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment