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.1.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.1-py3-none-any.whl (707.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flet_mobile_preview-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 29bce0f341ec4211b48608751b64eba68aebb4cce80e704e5b42cdcceb2be38f
MD5 68821da37c202ec8dfe8e3dbe326ca19
BLAKE2b-256 1f444d265018bf2ee10e08e8e490ace8fef3d9223d13ab064dad18097cbf8ce7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for flet_mobile_preview-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3177b0497202c57ae920c08710ed3fd43eb6bfb4f221439faa739f28190e6fcc
MD5 9491a6b50a3823ac00b7fec0930505cc
BLAKE2b-256 579e81acaeddcd781a788d9bebbf57aff2876451a6ce6c3650e57c2d6276dec2

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