Skip to main content

A simple phone preview for Flet applications

Project description

flet_mobile_preview

flet_mobile_preview is a Python package that provides a preview of an iPhone 13 interface using the Flet framework. This package allows you to simulate the appearance of an iPhone 13 on your desktop, making it easier to design and test mobile interfaces.

Installation

You can install the package using pip:

pip install flet_mobile_preview

Usage

Here is an example of how to use the flet_mobile_preview package:

import flet as ft
from flet_mobile_preview.iPhone import iPhone13

def main(page: ft.Page):
    phone = iPhone13(page)
    phone.screen.appbar = ft.AppBar(
        bgcolor="bleu",
        title=ft.Text("Hello App", color="white"),
    )
    phone.screen.content = ft.Container(
        content=ft.Text("Hello, World!", size=20),
    )
    phone.run()

ft.app(target=main)

Features

  • Simulate the appearance of an iPhone 13 on your desktop.
  • Zoom in and out to adjust the preview size.
  • Minimize, update, and close the preview window.
  • Customize the title bar and phone bar colors.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

Author

This package is developed by Victoire243.

Acknowledgements

Special thanks to @Salakhddinov for giving the idea to create this package.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flet_mobile_preview-1.0.0.tar.gz (707.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flet_mobile_preview-1.0.0-py3-none-any.whl (707.9 kB view details)

Uploaded Python 3

File details

Details for the file flet_mobile_preview-1.0.0.tar.gz.

File metadata

  • Download URL: flet_mobile_preview-1.0.0.tar.gz
  • Upload date:
  • Size: 707.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for flet_mobile_preview-1.0.0.tar.gz
Algorithm Hash digest
SHA256 944febb9ea1cdf314c3f4fb3155884ff0d6dd1784f0d3283fbc4f7ab3836f033
MD5 ee3c591b05c4f0a5eb54a7feb936c6ee
BLAKE2b-256 c36f264c8f37414b7083c2a247192c843f9d804b5ad3eeecb2b29fa565e50c6b

See more details on using hashes here.

File details

Details for the file flet_mobile_preview-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for flet_mobile_preview-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ae92730723a670d9a664bf69008704a721ae59e2650ee8266c89e964a2c8530
MD5 8fe4041967e0cf4f8eb77454713ac459
BLAKE2b-256 16750068bed84a79e01cb4d632ef3efff8f92cdf96a7c6139d7bf320162f5d92

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page