Skip to content

Commit

Permalink
doc: update images
Browse files Browse the repository at this point in the history
  • Loading branch information
evan361425 committed Dec 2, 2024
1 parent 07da68f commit 1ea0999
Show file tree
Hide file tree
Showing 27 changed files with 13 additions and 17 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/cheese-burger.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/ham-burger.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/index-introduction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/index-introduction.zh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/veggie-burger.webp
Binary file not shown.
20 changes: 6 additions & 14 deletions lib/ui/home/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,13 @@ class _WithTab extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
floatingActionButton: _FAB(),
body: NestedScrollView(
headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
return <Widget>[
SliverAppBar(
floating: true,
title: Text(S.appTitle),
centerTitle: true,
flexibleSpace: const _FlexibleSpace(),
// disable shadow after scrolled
// scrolledUnderElevation: 0,
),
];
},
body: shell,
appBar: AppBar(
title: Text(S.appTitle),
centerTitle: true,
flexibleSpace: const _FlexibleSpace(),
excludeHeaderSemantics: true,
),
body: shell,
bottomNavigationBar: NavigationBar(
selectedIndex: min(shell.currentIndex, 3),
onDestinationSelected: (index) {
Expand Down
10 changes: 7 additions & 3 deletions scripts/paint_introduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ def pp(file):

for lang in langs:
folder = lang["folder"]
folder = pp(f"../android/fastlane/metadata/android/{folder}/images/phoneScreenshots")
folder = pp(
f"../android/fastlane/metadata/android/{folder}/images/phoneScreenshots"
)
space = 60

images = [
Image.open(f"{folder}/{x}")
for x in ["1_analysis_chart.png", "4_order_action.png", "7_stock.png"]
for x in ["1_analysis_chart.png", "4_order_action.png", "7_inventory.png"]
]
widths, heights = zip(*(i.size for i in images))

Expand Down Expand Up @@ -48,4 +50,6 @@ def pp(file):
)
x_offset += im.size[0] + space

new_im.save(os.path.join(pp(f"../docs/images/index-introduction{lang["suffix"]}.png")))
new_im.save(
os.path.join(pp(f"../docs/images/index-introduction{lang["suffix"]}.png"))
)

0 comments on commit 1ea0999

Please sign in to comment.