Skip to content

Commit

Permalink
feat: responsible width design (#211)
Browse files Browse the repository at this point in the history
- Breakpoints
- Routing
- showMenu v.s. showModalBottomSheet
- AlertDialog v.s. Dialog.fullscreen
  • Loading branch information
evan361425 committed Sep 11, 2024
1 parent c459b84 commit b6bb34e
Show file tree
Hide file tree
Showing 173 changed files with 6,785 additions and 5,168 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"firestore",
"Formattable",
"googleapis",
"Ingr",
"Linkify",
"loadmore",
"LTRB",
Expand Down
3 changes: 2 additions & 1 deletion assets/l10n/en/analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,15 @@ goals:
title: Cost
achievedRate:
- |-
Profit Achievement
Profit Goal
{rate}
- rate:
chart:
title: Chart Analysis
_title:
$prefix: title
create: Create Chart
update: Edit Chart
reorder: Reorder Charts
tutorial:
title: Chart Analysis
Expand Down
4 changes: 2 additions & 2 deletions assets/l10n/en/cashier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ changer:
label: Currency
addBtn: Add Currency
divider:
from: Withdraw from Cash Register
to: Exchange
from: Take
to: Exchange to
surplus:
title: Surplus
button: Surplus
Expand Down
12 changes: 12 additions & 0 deletions assets/l10n/en/global.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ searchCount:
- Found {count} results
- Total count displayed on the SearchScaffold.
- count: {type: int, format: compact}
title:
- analysis: Stats
stock: Inventory
cashier: Cashier
settings: Settings
menu: Menu
transit: Data Transfer
orderAttributes: Customer Settings
stockQuantities: Quantities
elf: Suggestions
more: More
debug: Debug
dialog:
deletionTitle:
- Delete Confirmation
Expand Down
5 changes: 4 additions & 1 deletion assets/l10n/en/menu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ product:
emptyBody: |-
"Products" are the basic units in the menu, such as:
"Cheese Burger", "Cola"
notSelected:
- Please select a category first
- When not selecting a category, the product list will not be displayed. This message will be displayed in the product list
title:
create: Add Product
update: Edit Product
Expand Down Expand Up @@ -137,7 +140,7 @@ ingredient:
quantity:
title:
create: Add Quantity
update: Edit Quantity
update: Edit
meta:
amount:
- 'Amount: {amount}'
Expand Down
23 changes: 6 additions & 17 deletions assets/l10n/en/order.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,12 @@ loader:
catalogList:
empty: No product categories set yet
productList:
tutorial:
title: Start Ordering!
content:
- |-
Ordering through images is more convenient!
You can go to "Settings" > "[Items Per Row]({link})" to adjust
and allow text-only ordering here.
- link:
view:
helper:
- grid: Grid
list: List
- Product list display mode
noIngredient: No ingredients
cart:
action:
bulkify: Bulk Actions
Expand Down Expand Up @@ -82,15 +80,6 @@ cart:
free: Free
delete: Delete
snapshot:
tutorial:
title: Cart
content:
- |-
To make selecting products more convenient,
we've placed the products you've ordered here.
If you need a layout that shows all information at once (suitable for large screens),
go to "Settings" > "[Ordering Layout]({link})" to adjust.
- link:
empty: No items in cart
meta:
totalPrice:
Expand Down
14 changes: 7 additions & 7 deletions assets/l10n/en/order_attribute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ headerInfo:
- Customer Settings
- Displayed on the upper rectangle in homepage
tutorial:
title: Customer Settings
title: Create Your Customer Settings
content: |-
This is where you set customer information, such as dine-in, takeout, office worker, etc.
This information helps us track who comes to consume and make better business strategies.
Expand Down Expand Up @@ -69,19 +69,19 @@ name:
option:
title:
create: Add Option
createWith:
- Add option for {name}
- name:
update: Edit Option
reorder: Reorder Options
meta:
default: Default
optionOf:
- option of {name}
- name:
name:
label: Option Name
helper: |-
For example, possible options for age include:
- Under 20
- 20 to 30
For 'age', possible options are:
- 20
- 20 30
error:
repeat: Name already exists
mode:
Expand Down
15 changes: 0 additions & 15 deletions assets/l10n/en/setting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,6 @@ theme:
- name:
language:
title: Language
orderOutlook:
title: Ordering Outlook
name:
- slidingPanel: Sliding Panel
singleView: Classic Mode
- Appearance during ordering
- name:
tip:
- slidingPanel: Panel slides up during ordering, suitable for small-screen phones
singleView: All info displayed on a single screen, suitable for large-screen tablets
- name:
checkoutWarning:
title: Cash Registry Warnings
name:
Expand All @@ -55,10 +44,6 @@ checkoutWarning:
onlyNotEnough: Show warning when cash registry not enough money.
hideAll: Won't display any warnings during ordering.
- name:
orderProductCount:
title: Products per Row during Ordering
hint: Set to "0" to display only text during ordering
minLabel: Text Only
orderAwakening:
title:
- Keep Screen On During Ordering
Expand Down
30 changes: 15 additions & 15 deletions assets/l10n/en/stock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,47 +73,47 @@ ingredient:
- Origin
- The original amount before the restock
replenishment:
button: Purchase
button: Replenish
emptyBody: Purchasing helps you quickly adjust ingredient inventory
title:
list: Purchase List
create: Add Purchase
update: Edit Purchase
list: Replenishment
create: Add Replenishment
update: Edit Replenishment
meta:
affect:
- Affects {count} Ingredients
- Indicates in the purchase list how many ingredients are affected
- Indicates in the replenishment list how many ingredients are affected
- count: {type: int}
never:
- Never Purchased
- Never Replenished
- The stock page displays the last replenishment time; if never replenished, this text is set
apply:
button: Apply Purchase
preview: Preview
confirm:
button: Apply
title: Apply Purchase?
title: Apply Replenishment?
column:
- name: Name
amount: Amount
- value:
hint: After apply, following ingredients will be adjusted
tutorial:
title: Ingredient Purchases
title: Replenishment
content: |-
Through purchases, you no longer need to set the inventory of each ingredient one by one.
Set up purchases now and adjust multiple ingredients at once!
Through Replenishment, you no longer need to set the inventory of each ingredient one by one.
Set up Replenishment now and adjust multiple ingredients at once!
name:
label: Purchase Name
hint: e.g., Costco Purchase
label: Replenishment Name
hint: e.g., Costco Shopping
error:
repeat: Purchase name already exists
repeat: Replenishment name already exists
ingredients:
divider: Ingredients
helper: Click to set the quantity of different ingredients to be purchased
ingredientAmount:
hint: Set the amount to increase/decrease
quantity:
title: Quantity
title: Quantities
description: Half Sugar, Low Sugar, etc.
_title:
$prefix: title
Expand Down
1 change: 1 addition & 0 deletions assets/l10n/zh/analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ chart:
_title:
$prefix: title
create: 新增圖表
update: 編輯圖表
reorder: 排序圖表
tutorial:
title: 圖表分析
Expand Down
2 changes: 1 addition & 1 deletion assets/l10n/zh/cashier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ changer:
label: 幣值
addBtn: 新增幣種
divider:
from: 從收銀機中拿出
from:
to:
surplus:
title: 結餘
Expand Down
12 changes: 12 additions & 0 deletions assets/l10n/zh/global.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ multiChoices: 可以選擇多種
totalCount:
- other: 總共 {count} 項
searchCount: 搜尋到 {count} 個結果
title:
- analysis: 分析
stock: 庫存
cashier: 收銀
settings: 設定
menu: 菜單
transit: 資料轉移
orderAttributes: 顧客設定
stockQuantities: 份量
elf: 建議
more: 更多
debug: Debug
dialog:
deletionTitle: 刪除確認通知
deletionContent: |-
Expand Down
4 changes: 3 additions & 1 deletion assets/l10n/zh/menu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ product:
emptyBody: |-
「產品」是菜單裡的基本單位,例如:
「起司漢堡」、「可樂」
notSelected:
- 請先選擇產品種類
title:
create: 新增產品
update: 編輯產品
Expand Down Expand Up @@ -110,7 +112,7 @@ ingredient:
quantity:
title:
create: 新增份量
update: 編輯份量
update: 編輯
meta:
amount: 使用量:{amount}
additionalPrice: 額外售價:{price}
Expand Down
20 changes: 5 additions & 15 deletions assets/l10n/zh/order.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,11 @@ loader:
catalogList:
empty: 尚未設定產品種類
productList:
tutorial:
title: 開始點餐!
content:
- |-
透過圖片點餐更方便!
可以至「設定」>「[每行顯示幾個產品]({link})」調整
讓這裡僅使用文字點餐。
- link:
view:
helper:
- grid: 圖片
list: 列表
noIngredient: 無設定成分
cart:
action:
bulkify: 批量操作
Expand Down Expand Up @@ -69,13 +66,6 @@ cart:
free: 招待
delete: 刪除
snapshot:
tutorial:
title: 購物車
content: |-
為了讓點選產品可以更方便,
我們把點餐後的產品設定至於此面板。
如果需要一次顯示所有訊息的排版(適合大螢幕),
可以至「設定」>「[點餐的外觀]({link})」調整。
empty: 尚未點餐
meta:
totalPrice: 總價:{price}
Expand Down
8 changes: 4 additions & 4 deletions assets/l10n/zh/order_attribute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ emptyBody: |-
20-30歲、外帶、上班族。
headerInfo: 顧客設定
tutorial:
title: 顧客設定
title: 建立屬於你的顧客設定
content: |-
這裡是用來設定顧客的資訊,例如:內用、外帶、上班族等。
這些資訊可以幫助我們統計哪些人來消費,進而做出更好的經營策略。
Expand Down Expand Up @@ -59,17 +59,17 @@ name:
option:
title:
create: 新增選項
createWith: 新增{name}的選項
update: 編輯選項
reorder: 排序選項
meta:
default: 預設
optionOf: '{name}的選項'
name:
label: 選項名稱
helper: |-
以年齡為例,可能的選項有:
- 20 歲以下
- 20 30
- ⇣ 20
- 20 30
error:
repeat: 名稱不能重複
mode:
Expand Down
12 changes: 0 additions & 12 deletions assets/l10n/zh/setting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ theme:
system: 跟隨系統
language:
title: 語言
orderOutlook:
title: 點餐的外觀
name:
- slidingPanel: 酷炫面板
singleView: 經典模式
tip:
- slidingPanel: 點餐時下方會有可拉動的面板,內含點餐中的資訊,適合小螢幕的手機
singleView: 所有資訊顯示在單一螢幕中,適合大螢幕的平板
checkoutWarning:
title: 收銀機提示
name:
Expand All @@ -41,10 +33,6 @@ checkoutWarning:
例如 5 塊錢不夠了,開始用 5 個 1 塊去找錢
onlyNotEnough: 當零錢不夠找的時候,顯示提示。
hideAll: 當點餐時,收銀機不會顯示任何提示
orderProductCount:
title: 點餐時每行顯示幾個產品
hint: 設定「零」則點餐時僅會以文字顯示
minLabel: 純文字顯示
orderAwakening:
title: 點餐時不關閉螢幕
description: 若取消,則會根據系統設定時間關閉螢幕
Expand Down
2 changes: 1 addition & 1 deletion assets/l10n/zh/stock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ replenishment:
affect: 會影響 {count} 項成分
never: 尚未補貨過
apply:
button: 套用採購
preview: 預覽
confirm:
button: 套用
title: 套用採購?
Expand Down
3 changes: 3 additions & 0 deletions devtools_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
description: This file stores settings for Dart & Flutter DevTools.
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
extensions:
Loading

0 comments on commit b6bb34e

Please sign in to comment.