فهرست منبع

update MainMenuScreen

КурносовИН 1 هفته پیش
والد
کامیت
ee449ec40f

+ 8 - 0
Project/.idea/deploymentTargetSelector.xml

@@ -4,6 +4,14 @@
     <selectionStates>
       <SelectionState runConfigName="app">
         <option name="selectionMode" value="DROPDOWN" />
+        <DropdownSelection timestamp="2024-11-20T11:46:01.661175100Z">
+          <Target type="DEFAULT_BOOT">
+            <handle>
+              <DeviceId pluginId="LocalEmulator" identifier="path=C:\AndroidSettings\.android\avd\Pixel_8_API_35.avd" />
+            </handle>
+          </Target>
+        </DropdownSelection>
+        <DialogSelection />
       </SelectionState>
     </selectionStates>
   </component>

+ 2 - 2
Project/app/src/main/java/com/example/mygymapp/view/mainActivity/MainActivity.kt

@@ -37,7 +37,7 @@ class MainActivity : ComponentActivity() {
                     val navController = rememberNavController()
                     NavHost(
                         navController = navController,
-                        startDestination = "register_screen"
+                        startDestination = "main_menu_screen"
                     ) {
                         composable("start_screen") {
                             StartScreen()
@@ -53,7 +53,7 @@ class MainActivity : ComponentActivity() {
                             RegisterScreen(navController)
                         }
                         composable("main_menu_screen"){
-                            MainMenuScreen(navController)
+                            MainMenuScreen()
                         }
 
                     }

+ 29 - 2
Project/app/src/main/java/com/example/mygymapp/view/mainActivity/components/MainMenuScreen.kt

@@ -2,17 +2,23 @@ package com.example.mygymapp.view.mainActivity.components
 
 import androidx.compose.foundation.background
 import androidx.compose.foundation.layout.Arrangement
+import androidx.compose.foundation.layout.Box
 import androidx.compose.foundation.layout.Column
 import androidx.compose.foundation.layout.padding
+import androidx.compose.foundation.layout.size
+import androidx.compose.foundation.shape.RoundedCornerShape
 import androidx.compose.runtime.Composable
 import androidx.compose.ui.Alignment
 import androidx.compose.ui.Modifier
+import androidx.compose.ui.tooling.preview.Preview
 import androidx.compose.ui.unit.dp
 import androidx.navigation.NavHostController
 import com.example.mygymapp.ui.theme.BlueBlack
+import com.example.mygymapp.ui.theme.BlueDark
 
+@Preview
 @Composable
-fun MainMenuScreen(navHost: NavHostController)
+fun MainMenuScreen()
 {
     Column(
         Modifier
@@ -20,5 +26,26 @@ fun MainMenuScreen(navHost: NavHostController)
             .padding(top = 50.dp, start = 15.dp, end = 15.dp),
         verticalArrangement = Arrangement.Top,
         horizontalAlignment = Alignment.CenterHorizontally,
-    ){}
+    ){
+        Box(modifier = Modifier
+            .padding()
+            .size(width = 325.dp, height = 150.dp)
+            .background(color = BlueDark, shape = RoundedCornerShape(25.dp))
+                ) {
+        }
+
+        Box(modifier = Modifier
+            .padding()
+            .size(width = 160.dp, height = 150.dp)
+            .background(color = BlueDark, shape = RoundedCornerShape(25.dp))
+        ) {
+        }
+
+        Box(modifier = Modifier
+            .padding()
+            .size(width = 325.dp, height = 150.dp)
+            .background(color = BlueDark, shape = RoundedCornerShape(25.dp))
+        ) {
+        }
+    }
 }