This project is a Flutter application that fetches data from a file server and lists the files in a hierarchical manner.
Before running the application, ensure you have the following installed on your machine:
- Flutter SDK: Flutter Installation
- Dart SDK: Usually included with the Flutter SDK
- A code editor (recommended: Visual Studio Code or Android Studio)
-
Clone the Repository
Clone the project repository to your local machine using the command:
git clone <REPOSITORY_URL>-
Add the Server Host
Before running the application, you need to add the file server host in the
app_connectfile. Follow the steps below:-
Open the
lib/config/app_connect.dartfile in your code editor. -
Edit the
baseUrlto include your server's host. For example:httpClient.baseUrl = 'http://your-server.com';
-
With the environment set up, follow the steps below to run the application:
-
Install Dependencies
Navigate to the project directory in the terminal and run the command to install the dependencies
flutter pub get
-
Run the Application
Connect a device (physical or emulator) and run the command to start the application:
flutter run
lib/main.dart: The entry point of the application.lib/core: Contains all configurations and utils for applicationlib/shared/: Contains widgets that will be used in any part of the code regardless of the business rulelib/modules/: Modules that contain pages, widgets, controllers, providers and views
For more information, contact wesleygonalv@gmail.com