Skip to content

Commit c8b6be6

Browse files
Cookbook: Read and write files (#398)
* initial commit * truncate blog posts * add cookbook page to sidebar * Update docs/cookbook/read-and-write-files.md Co-authored-by: Feodor Fitsner <[email protected]> * Update docs/cookbook/read-and-write-files.md Co-authored-by: Feodor Fitsner <[email protected]> * update var name * delete counter.png * add video url --------- Co-authored-by: Feodor Fitsner <[email protected]>
1 parent 881eb6b commit c8b6be6

33 files changed

+258
-14
lines changed

blog/2022-06-12-using-custom-fonts-in-flet-app.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ The following font formats are supported:
1515

1616
Use [`page.fonts`](/docs/controls/page#fonts) property to import fonts.
1717

18+
<!-- truncate -->
19+
1820
Set `page.fonts` property to a dictionary where key is the font family name to refer that font and the value is the URL of the font file to import:
1921

2022
```python

blog/2022-07-14-drag-and-drop-release.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Take a look at [Drag-and-Drop example](https://github.com/flet-dev/examples/blob
1717

1818
Explore [`Draggable`](/docs/controls/draggable) and [`DragTarget`](/docs/controls/dragtarget) controls, their properties and events.
1919

20+
<!-- truncate -->
21+
2022
## Absolute positioning inside Stack
2123

2224
All visible controls now have `left` `top`, `right` and `bottom` properties to let them be absolutely positioned inside [`Stack`](/docs/controls/stack), for example:

blog/2022-07-23-navigation-and-routing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Well, it took [more efforts](https://github.com/flet-dev/flet/pull/95/files) tha
2121

2222
Explore [source code](https://github.com/flet-dev/examples/blob/main/python/apps/routing-navigation/building-views-on-route-change.py) of the example above.
2323

24+
<!-- truncate -->
25+
2426
## Page route
2527

2628
Page route is a portion of application URL after `#` symbol:

blog/2022-07-24-flet-mobile-strategy.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ New Flet developers are constantly asking if there is a way to package Flet prog
1111

1212
In this post I would like to share our vision for Flet going mobile and provide a roadmap.
1313

14+
<!-- truncate -->
15+
1416
## Server-Driven UI
1517

1618
Flet is a Server-driven UI (SDUI) framework. SDUI is an emerging technology which is the best described in [Technology Radar post](https://www.thoughtworks.com/en-ca/radar/techniques/server-driven-ui):

blog/2022-08-03-control-refs.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ When more and mode controls and event handlers added it becomes challenging to k
5050

5151
Is `first_name` a TextField, does it have autofocus set? Is greetings a `Row` or a `Column`?
5252

53+
<!-- truncate -->
54+
5355
## `Ref` class
5456

5557
Flet provides `Ref` utility class which allows to define a reference to the control, use that reference in event handlers and set the reference to a real control later, while building a tree. The idea comes from [React](https://reactjs.org/docs/refs-and-the-dom.html).

blog/2022-08-04-gradients-button-textfield-styles.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ We've just released [Flet 0.1.46](https://pypi.org/project/flet/0.1.46/) adding
1111
* Extensive styling for buttons, TextField and Dropdown controls
1212
* ...and more
1313

14+
<!-- truncate -->
15+
1416
## Gradient backgrounds
1517

1618
### Linear gradient

blog/2022-08-21-fun-with-animations.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Flutter offers [multiple approaches](https://docs.flutter.dev/development/ui/ani
1111

1212
We are starting with "implicit" animations which allows you to animate a control property by setting a target value; whenever that target value changes, the control animates the property from the old value to the new one.
1313

14+
<!-- truncate -->
15+
1416
## Demo time
1517

1618
<div style={{fontSize: "1.1rem", textAlign: "center", padding: "1rem" }}>

blog/2022-09-02-file-picker-and-uploads.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ File picker allows opening three dialogs:
2121
* **Save file** - choose directory and file name.
2222
* **Get directory** - select directory.
2323

24+
<!-- truncate -->
25+
2426
When running Flet app in a browser only "Pick files" option is available and it's used for uploads only as it, obviously, doesn't return a full path to a selected file.
2527

2628
Where file picker really shines is a desktop! All three dialogs return full paths to selected files and directories - great assistance to your users!

blog/2022-09-27-user-authentication.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Traditionally, this release is not just about authentication, but it adds a ton
1717

1818
<TOCInline toc={toc} maxHeadingLevel={2} />
1919

20+
<!-- truncate -->
21+
2022
## Authentication
2123

2224
Flet authentication features:

blog/2022-10-11-gesture-detector.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Here is a simple example of an app which allows you to drag containers inside a
1313

1414
<img src="/img/blog/gesture-detector/gesture-detector-demo.gif" className="screenshot-50" />
1515

16+
<!-- truncate -->
17+
1618
```python
1719
import flet as ft
1820

0 commit comments

Comments
 (0)