Important
This repo is a work in progress and is not yet ready for production use.
Here is the Flutter-based version of the LangX application, originally developed using the Ionic Angular framework.
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
- Flutter SDK: Ensure that you have the Flutter SDK installed. If not, follow the instructions here to install it.
- Dart SDK: Dart is included with the Flutter SDK.
- IDE: It is recommended to use an IDE like Visual Studio Code or Android Studio with the Flutter and Dart plugins installed.
- Emulator/Simulator: Have an emulator (Android or iOS) or a physical device set up for testing.
- Homebrew (macOS)
brew install flutter
- Chocolatey (Windows):
> choco install flutter
- Snap (Linux):
sudo snap install flutter --classic
- APT (Debian/Ubuntu):
sudo apt install flutter
If you haven't already cloned the repository, you can do so with the following command:
git clone https://github.com/langx/langx-flutter.git
cd langx-flutter
Navigate to the project directory and install the necessary dependencies:
flutter pub get
Copy the .env.sample
file to .env
:
cp .env.sample .env
Ensure that the project configuration is correct and any necessary environment variables or settings are set up.
To run the project on an emulator or physical device, use the following command:
## chrome
flutter run -d chrome
## or
flutter run -d <device_id>
To run the tests for the project, use the following command:
$ flutter test
00:04 +1: All tests passed!
Analyzing Code:
$ flutter analyze
Analyzing langx-flutter...
No issues found! (ran in 0.7s)
List Devices:
flutter devices
If you are using Visual Studio Code or Android Studio, make sure to install the Flutter and Dart plugins to enhance your development experience.
- Visual Studio Code: Install the Flutter and Dart extensions from the Extensions Marketplace.
- Android Studio: Install the Flutter and Dart plugins from the Plugin Preferences.
With these steps, you should be able to build, run, and test the 'langx-flutter' project. Let me know if you encounter any issues or need further assistance!
To build the project for different platforms, use the following commands:
-
Android:
flutter build apk
-
iOS:
flutter build ios
-
Web:
flutter build web
To deploy the project to different platforms, follow the official documentation for each platform.
If you encounter any issues, feel free to open an issue at langx/langx-flutter/issues. If you can fix the issue, please do so and open a pull request.
We welcome contributions from the community! If you'd like to contribute to the Flutter version of LangX , please fork our repository, make some improvements, and submit a pull request. We'll review your changes and merge them if they meet our guidelines. You can find out more about this in CONTRIBUTING.md. Thank you for helping to make this page even better!
LangX is an open source project and we welcome contributions from the community. If you're interested in contributing, please check out our GitHub repository for more information.
The Flutter version of LangX is released under the BSD 3-Clause License. If you use this project, please include the license file in your distribution.