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

update: uikit

parent 53a4b750
......@@ -72,10 +72,13 @@
<string>Main</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
......
......@@ -9,7 +9,8 @@ AppBar transparentAppBar({
List<Widget>? actions,
}) {
return AppBar(
backgroundColor: Color.fromARGB(0, 0, 0, 0),
// Color.argb(255, 28, 28, 30)
backgroundColor: Color.fromARGB(255, 28, 28, 30),
// elevation: 2,
title: title,
elevation: 0,
......
......@@ -117,7 +117,8 @@ class ApplicationPage extends GetView<ApplicationController> {
return Obx(() => BottomNavigationBar(
// #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.argb(255, 82, 88, 103)
......@@ -141,87 +142,85 @@ class ApplicationPage extends GetView<ApplicationController> {
Get.put(HomeController());
final homeController = Get.find<HomeController>();
return AnimatedAlign(
duration: Duration(milliseconds: 300),
alignment: controller.state.showBottomMenu ? Alignment.bottomCenter : const Alignment(0, 2),
child: Container(
height: 180,
padding: const EdgeInsets.fromLTRB(20, 20, 20, 100),
decoration: BoxDecoration(
color: Colors.black.withAlpha(180),
borderRadius: const BorderRadius.all(Radius.circular(20))
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Expanded(child:
Container(
height: 44,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(22),
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [Color(0xFFbe6afb),Color(0xFF7965f8)],
),
),
child: TextButton(
onPressed: homeController.deleteMessages,
child: Center(
child: Text(
'删除(${homeController.selectedItems.length})',
style: TextStyle(color: Colors.white),
duration: Duration(milliseconds: 300),
alignment: controller.state.showBottomMenu
? Alignment.bottomCenter
: const Alignment(0, 2),
child: Container(
height: 180,
padding: const EdgeInsets.fromLTRB(20, 20, 20, 100),
decoration: BoxDecoration(
color: Colors.black.withAlpha(180),
borderRadius: const BorderRadius.all(Radius.circular(20))),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Expanded(
child: Container(
height: 44,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(22),
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [Color(0xFFbe6afb), Color(0xFF7965f8)],
),
),
))
),
SizedBox(width: 30),
Expanded(
child: Container(
height: 44,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(22),
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [Color(0xFFbe6afb),Color(0xFF7965f8)],
child: TextButton(
onPressed: homeController.deleteMessages,
child: Center(
child: Text(
'删除(${homeController.selectedItems.length})',
style: TextStyle(color: Colors.white),
),
),
child: TextButton(
onPressed: homeController.shareMessages,
child: Center(
child: Text(
'分享(${homeController.selectedItems.length})',
style: TextStyle(color: Colors.white),
),
),
))
),
SizedBox(width: 30),
Expanded(
child: Container(
height: 44,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(22),
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [Color(0xFFbe6afb),Color(0xFF7965f8)],
))),
SizedBox(width: 30),
Expanded(
child: Container(
height: 44,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(22),
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [Color(0xFFbe6afb), Color(0xFF7965f8)],
),
),
child: TextButton(
onPressed: homeController.shareMessages,
child: Center(
child: Text(
'分享(${homeController.selectedItems.length})',
style: TextStyle(color: Colors.white),
),
),
child: TextButton(
onPressed: homeController.cancelShare,
child: const Center(
child: Text(
'取消',
style: TextStyle(color: Colors.white),
),
))),
SizedBox(width: 30),
Expanded(
child: Container(
height: 44,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(22),
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [Color(0xFFbe6afb), Color(0xFF7965f8)],
),
),
child: TextButton(
onPressed: homeController.cancelShare,
child: const Center(
child: Text(
'取消',
style: TextStyle(color: Colors.white),
),
))
),
],
),
),
);
),
))),
],
),
),
);
}
@override
......@@ -233,9 +232,10 @@ class ApplicationPage extends GetView<ApplicationController> {
children: [
Container(
decoration: BoxDecoration(
image: DecorationImage(
image: Image.asset("assets/images/background.png").image,
fit: BoxFit.cover),
color: Color.fromARGB(255, 28, 28, 30),
// image: DecorationImage(
// image: Image.asset("assets/images/background.png").image,
// fit: BoxFit.cover),
),
child: Scaffold(
// resizeToAvoidBottomInset: false,
......
......@@ -47,11 +47,9 @@ class _HomePageState extends State<_HomePage>
HomeController get controller => Get.find<HomeController>();
@override
Widget build(BuildContext context) {
final cc = controller;//Get.put(HomeController());
final cc = controller; //Get.put(HomeController());
return Obx(() => Scaffold(
resizeToAvoidBottomInset: false,
backgroundColor: Color.fromARGB(0, 0, 0, 0),
......@@ -195,7 +193,8 @@ class _HomePageState extends State<_HomePage>
isTextInput: cc.state.isInputText,
inputTextStyle: TextStyle(color: Colors.white),
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),
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