FlutterAppShowcase is a simple tool that allows you to showcase your Flutter Android or iOS apps online, providing a glimpse of how they would look and work without the need for installation.
To use FlutterAppShowcase, follow these steps:
-
Clone this repository to your local machine:
git clone https://github.com/your-username/FlutterAppShowcase.git
-
Build the app for the web using Flutter: (execute these commands in app directory)
flutter create --platforms web flutter build web --web-renderer html
(the first commands enables Web platform for your project.
The second command builds webApp under build/web folder.) -
Now copy the generated build from your project
yourProjectName/build/web
copy theweb
folder
and replace with theweb
folder in this repo. -
in
input
folder, there is a file namedParsingEngine.html
, copy the code from that file and paste ininput/web/index.html
. ( ie replaceinput/web/index.html
with code ofinput/ParsingEngine.html
).
- This should show the live preview on the page.
if not, follow the steps in
ParseEngine.html
-
Rename the title and description in the main index.html file to match your app's information:
<!-- add Application Title here --> <title>Your App Name</title>
(done, now when you serve this directory with any server and if everything went right, you should see a live version of your app from
index.html
)
-
The final structure should look like-
- input
- web
- assets,icons,index.html,flutter.js etc fils.
- ParsingEngine.html
- web
- index.html
- input
- Done, Host your application,
you can use the LiveServer Extention,
or XAMPP server for local testing.
you can use Github Pages or Firebase/Netlify any server for hosting this.
Now, your app will be accessible online in a browser. Users can interact with it, including touch and scroll actions. It is also responsive and will adapt beautifully to both mobile and desktop screens.
The visualization is achieved by embedding your Flutter app's web build within an HTML template. The template provides a border and a device frame, giving users the impression of using a real device. The iframe within the template loads your web build, allowing users to interact with your app as if it were installed on their Android device.
The reason behind this many tasks is the bugs in flutter rendering process, more on that here
This tool offers a convenient way to demonstrate your Flutter app's capabilities to potential users or clients without requiring them to install the app on their devices.
Note: This is a visualization tool and does not host the actual app. Users must have an internet connection to access the app through this showcase. The view of application depends on the quality of flutter code and responsiveness by developer
Enjoy showcasing your Flutter app online!