Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master #5

Open
wants to merge 28 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift click to select a range
0d710f8
places api restricted to ar results, some inf added to tripitem
cristiangranero90 Jul 4, 2023
60e25d0
Sdk updated to v34. M3alpha03
cristiangranero90 Jul 4, 2023
3783836
Fixed Tripscreen. New strings added for many languages
cristiangranero90 Nov 23, 2023
beed9b8
Build gradle updated. Navigation compose, compose material, play serv…
cristiangranero90 Nov 23, 2023
567fed5
Gradle updated. Maps compose downgrade (animations conflict)
cristiangranero90 Jan 10, 2024
221348d
Fixed dates UTC to system default
cristiangranero90 Jan 11, 2024
0f61054
All dates to UTC
cristiangranero90 Jan 12, 2024
e5a21f9
All dates to UTC
cristiangranero90 Jan 15, 2024
197076d
Top and Bottom bar added to a navigation compose
cristiangranero90 Jan 15, 2024
1233bba
Destinations from Navigation Compose updated
cristiangranero90 Jan 15, 2024
4fb54c1
Destinations from Navigation Compose updated
cristiangranero90 Jan 15, 2024
3b72a72
Fixed Dates and Times in TripScreen, TripCard && Preference screen
cristiangranero90 Jan 16, 2024
443b6df
OSMDroid Added to the root of project
cristiangranero90 Jan 17, 2024
7fffa23
Login Screen addded, Email Password request
cristiangranero90 Jan 19, 2024
1223294
Google SignIn method added
cristiangranero90 Jan 23, 2024
4f8a4a0
Profile Image taken from source
cristiangranero90 Jan 23, 2024
f8206e5
Launch icons added. SignOut from profile image is working
cristiangranero90 Jan 23, 2024
c1b163c
Material theme 3 updated - Build gradle
cristiangranero90 Jan 23, 2024
91508b5
Close session fixed, now is working fine
cristiangranero90 Jan 24, 2024
3ab561e
Back handler added
cristiangranero90 Jan 24, 2024
2103363
Back handler added
cristiangranero90 Jan 24, 2024
831fa4a
"Always logout" is not available now
cristiangranero90 Jan 24, 2024
fec0793
Drop down menu colors fixed
cristiangranero90 Jan 24, 2024
7251b3f
Logout string resources added to the project
cristiangranero90 Jan 24, 2024
9e88636
Apple icon button added
cristiangranero90 Jan 24, 2024
ab90913
Forgot password dialog fixed
cristiangranero90 Jan 24, 2024
3502af7
Password visibility added
cristiangranero90 Jan 24, 2024
072b3d3
Register dialog now is working. Can add new people to the app
cristiangranero90 Jan 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed Dates and Times in TripScreen, TripCard && Preference screen
  • Loading branch information
cristiangranero90 committed Jan 16, 2024
commit 3b72a72667698e7a4ffa9d205d228be2277de8d0
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 8,8 @@ import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import com.juntas.juntas_app.shared_components.BottomBar
import com.juntas.juntas_app.shared_components.TopBar

@Composable
fun JourneyCreate(
Expand Down Expand Up @@ -37,5 39,19 @@ fun JourneyCreate(
@Composable
@Preview
fun JourneyCreatePreview(){
JourneyCreate( {},{} )
JourneyCreate( topBar = {
TopBar(
onProfileClicked = { /*TODO*/ },
onNotificationsClicked = { /*TODO*/ },
imageUrl = ""
)
},
bottomBar = {
BottomBar(
currentDestination = null,
onHomeClicked = { /*TODO*/ },
onPassengerClicked = { /*TODO*/ },
onDriverClicked = { /*TODO*/ })
}
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 14,7 @@ import androidx.compose.foundation.layout.width
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.Checkbox
Expand Down Expand Up @@ -73,7 73,7 @@ fun PreferenceScreen(
) {
IconButton(onClick = { onBackClicked() }) {
Icon(
imageVector = Icons.Default.ArrowBack ,
imageVector = Icons.AutoMirrored.Filled.ArrowBack,
contentDescription = "Go back",
tint = MaterialTheme.colorScheme.secondary
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 33,19 @@ import coil.compose.AsyncImage
import com.juntas.juntas_app.R
import com.juntas.juntas_app.trip_item_screen.components.TripItem
import java.time.Instant
import java.time.LocalDateTime
import java.time.ZoneId
import java.time.format.DateTimeFormatter

@Composable
fun TripItemScreen(
profileImage: String,
date: Long,
dateLong: Long,
userNameLast: String,
onBackPressed: () -> Unit,
modifier: Modifier = Modifier ,
) {
var stars = 3
val date = Instant.ofEpochMilli(dateLong).atZone(ZoneId.of("UTC")).toLocalDate()

Scaffold(
modifier = modifier.fillMaxSize(),
Expand Down Expand Up @@ -151,11 152,7 @@ fun TripItemScreen(
horizontalArrangement = Arrangement.Start
) {
Text(
text = LocalDateTime
.ofInstant(
Instant.ofEpochSecond(date),
ZoneId.systemDefault()
).toString(), //TODO: Add dates from origin
text = date.format(DateTimeFormatter.ofPattern("DD-MM-yyyy")).toString(), //TODO: Add dates from origin
style = MaterialTheme.typography.titleSmall,
color = MaterialTheme.colorScheme.secondary
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 1,5 @@
package com.juntas.juntas_app.trip_screen.presentation.components

import android.os.Build
import androidx.annotation.RequiresApi
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
Expand All @@ -24,7 22,6 @@ import androidx.compose.material.icons.outlined.Schedule
import androidx.compose.material.icons.outlined.StarBorder
import androidx.compose.material3.Card
import androidx.compose.material3.CardDefaults
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
Expand All @@ -44,8 41,9 @@ import coil.compose.AsyncImage
import com.juntas.juntas_app.R
import java.time.LocalDate
import java.time.LocalTime
import java.time.format.DateTimeFormatter


@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun TripCard(
onCardClick: () -> Unit ,
Expand Down Expand Up @@ -229,7 227,7 @@ fun TripCard(
tint = MaterialTheme.colorScheme.tertiary,
)
Spacer(modifier = Modifier.width(10.dp))
Text(text = time.toString(), style = MaterialTheme.typography.bodySmall)
Text(text = time.format(DateTimeFormatter.ofPattern("HH-MM")).toString(), style = MaterialTheme.typography.bodySmall)
}
//Passengers
Spacer(modifier = Modifier.height(10.dp))
Expand Down Expand Up @@ -285,7 283,7 @@ fun TripCard(
}
}

@RequiresApi(Build.VERSION_CODES.O)

@Composable
@Preview(showBackground = true)
fun TripCardPreview() {
Expand Down