Skip to content

Commit 7df28e6

Browse files
committed
fletx.coree: Update page template by addiing SafeArea and change button style in the countteer template; Doc: Replace All Gifs in the readme
1 parent 38765db commit 7df28e6

11 files changed

Lines changed: 53 additions & 29 deletions

File tree

.github/FUNDIING.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: alldotpy
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: alldotpy
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
polar: # Replace with a single Polar username
13+
buy_me_a_coffee: alldotpy
14+
thanks_dev: # Replace with a single thanks.dev username
15+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

MANIFEST.in

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
recursive-include fletx/cli *.*
2-
recursive-include fletx/core *.*
3-
recursive-include fletx/decorators *.*
4-
recursive-include fletx/navigation *.*
5-
recursive-include fletx/utils *.*
6-
recursive-include fletx/widgets *.*
7-
global-prune __pycache__
1+
prune **/__pycache__
2+
global-exclude *.py[cod]
3+
recursive-include fletx/cli *.py *.tpl
4+
recursive-include fletx/core *.py
5+
recursive-include fletx/decorators *.py
6+
recursive-include fletx/navigation *.py
7+
recursive-include fletx/utils *.py
8+
recursive-include fletx/widgets *.py

PYPI.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ Perfect for building **desktop, web, and mobile apps** with Python at lightning
3030
<table>
3131
<tr>
3232
<td>
33-
Counter App
34-
<img src = "https://github.com/AllDotPy/FletX/blob/master/screeshots/videos/counter.gif?raw=true" width="400">
33+
web
34+
<img src = "https://github.com/AllDotPy/FletX/blob/master/screeshots/videos/web.gif?raw=true" width="400">
3535
</td>
3636
<td rowspan="2">
37-
Todo App
38-
<img src = "https://github.com/AllDotPy/FletX/blob/master/screeshots/videos/reactive_list.gif?raw=true" width="300">
37+
Mobile
38+
<img src = "https://github.com/AllDotPy/FletX/blob/master/screeshots/videos/mobile.gif?raw=true" width="300">
3939
</td>
4040
</tr>
4141
<tr >
4242
<td>
43-
Reactive Forms
44-
<img src = "https://github.com/AllDotPy/FletX/blob/master/screeshots/videos/reactive_forms.gif?raw=true" width="400">
43+
Desktop
44+
<img src = "https://github.com/AllDotPy/FletX/blob/master/screeshots/videos/desktop.gif?raw=true" width="400">
4545
</td>
4646
</tr>
4747
</table>

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,18 @@ Perfect for building **desktop, web, and mobile apps** with Python at lightning
5252
<table>
5353
<tr>
5454
<td>
55-
Counter App
56-
<img src = "./screeshots/videos/counter.gif" width="400">
55+
Web
56+
<img src = "./screeshots/videos/web.gif" width="400">
5757
</td>
5858
<td rowspan="2">
5959
Reactive List
60-
<img src = "./screeshots/videos/reactive_list.gif" width="400">
60+
<img src = "./screeshots/videos/mobile.gif" width="300">
6161
</td>
6262
</tr>
6363
<tr >
6464
<td>
65-
Reactive Forms
66-
<img src = "./screeshots/videos/reactive_forms.gif" width="400">
65+
Desktop
66+
<img src = "./screeshots/videos/desktop.gif" width="400">
6767
</td>
6868
</tr>
6969
</table>

fletx/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from fletx.core.di import DI
66

77

8-
__version__ = "0.1.4.b3"
8+
__version__ = "0.1.4.b4"
99

1010
####
1111
## FLETX - DEPENDENCY INJECTION INTERFACE

fletx/cli/templates/page/page.py.tpl

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class {{ name | pascal_case }}Page(FletXPage):
1616
def __init__(self):
1717
super().__init__(
1818
padding = 10,
19-
bgcolor = Colors.BLACK
19+
bgcolor = Theme.scaffold_bgcolor
2020
)
2121

2222
# ...
@@ -34,11 +34,16 @@ class {{ name | pascal_case }}Page(FletXPage):
3434
def build(self)-> Control:
3535
"""Method that build {{ name | pascal_case }}Page content"""
3636

37-
return Column(
37+
return SafeArea(
3838
expand = True,
39-
alignment = MainAxisAlignment.CENTER,
40-
horizontal_alignment = CrossAxisAlignment.CENTER,
41-
controls = [
42-
Text("{{ name | pascal_case }}Page works!", size=24),
43-
]
39+
minimum_padding = 0,
40+
maintain_bottom_view_padding = False,
41+
content = Column(
42+
expand = True,
43+
alignment = MainAxisAlignment.CENTER,
44+
horizontal_alignment = CrossAxisAlignment.CENTER,
45+
controls = [
46+
Text("{{ name | pascal_case }}Page works!", size=24),
47+
]
48+
)
4449
)

fletx/cli/templates/project/app/pages/counter.py.tpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ class CounterPage(FletXPage):
4848
weight = ft.FontWeight.BOLD
4949
)
5050
),
51-
ft.ElevatedButton(
52-
"Increment",
51+
ft.CupertinoFilledButton(
52+
content=ft.Text("Increment"),s
53+
opacity_on_click=0.7,
54+
padding=10,
5355
on_click=lambda e: self.ctrl.count.increment() # Auto UI update
5456
)
5557
]

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "FletXr"
3-
version = "0.1.4"
3+
version = "0.1.4.b4"
44
description = "The GetX-inspired Python Framework for Building Reactive, Cross-Platform Apps with Flet"
55
readme = "PYPI.md"
66
license = {file = "LICENSE"}
@@ -16,6 +16,7 @@ dependencies = [
1616
"pydantic>=2.11.5",
1717
"packaging>=21.0",
1818
"flet==0.28.3",
19+
"requests>=2.31.0", # For packaging
1920
]
2021

2122
[project.scripts]

screeshots/videos/desktop.gif

1.09 MB
Loading

screeshots/videos/mobile.gif

1.06 MB
Loading

0 commit comments

Comments
 (0)