Clara Bayarri | 581b24d | 2020-02-10 16:15:28 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2020 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package androidx.ui.material.studies.rally |
| 18 | |
| 19 | import androidx.compose.Composable |
Louis Pullen-Freilich | 4dc4dac | 2020-07-22 14:39:14 +0100 | [diff] [blame] | 20 | import androidx.compose.ui.graphics.vector.VectorAsset |
Clara Bayarri | 581b24d | 2020-02-10 16:15:28 +0000 | [diff] [blame] | 21 | import androidx.ui.material.icons.Icons |
Clara Bayarri | 581b24d | 2020-02-10 16:15:28 +0000 | [diff] [blame] | 22 | |
Clara Bayarri | c0157ea | 2020-02-12 18:34:17 +0000 | [diff] [blame] | 23 | enum class RallyScreenState( |
| 24 | val icon: VectorAsset, |
Louis Pullen-Freilich | 3a54b94 | 2020-05-07 13:23:03 +0100 | [diff] [blame] | 25 | val body: @Composable () -> Unit |
Clara Bayarri | c0157ea | 2020-02-12 18:34:17 +0000 | [diff] [blame] | 26 | ) { |
Clara Bayarri | 255d76a | 2020-02-12 12:23:09 +0000 | [diff] [blame] | 27 | Overview(Icons.Filled.PieChart, { OverviewBody() }), |
Jose Alcerreca | d1b2899 | 2020-05-26 16:35:59 +0200 | [diff] [blame] | 28 | Accounts(Icons.Filled.AttachMoney, { AccountsBody(UserData.accounts) }), |
| 29 | Bills(Icons.Filled.MoneyOff, { BillsBody(UserData.bills) }) |
Clara Bayarri | 581b24d | 2020-02-10 16:15:28 +0000 | [diff] [blame] | 30 | } |