chore: Xóa hoàn toàn ứng dụng Flutter app-client và các tệp cấu hình liên quan.
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
# Flutter build stage
|
||||
FROM ghcr.io/cirruslabs/flutter:stable AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy pubspec files
|
||||
COPY pubspec.yaml pubspec.lock ./
|
||||
|
||||
# Get dependencies
|
||||
RUN flutter pub get
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Build APK (for CI/CD purposes)
|
||||
# Note: Actual mobile builds require native tooling
|
||||
RUN flutter build apk --release || echo "Build skipped - requires Android SDK"
|
||||
|
||||
# For CI/CD testing only
|
||||
CMD ["flutter", "test"]
|
||||
@@ -1,43 +0,0 @@
|
||||
# App Client (Flutter)
|
||||
|
||||
Flutter mobile application for GoodGo Platform Client Portal.
|
||||
|
||||
## Features
|
||||
|
||||
- Flutter 3.x
|
||||
- Material Design 3
|
||||
- GoRouter for navigation
|
||||
- Provider for state management
|
||||
- API integration
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Flutter SDK >= 3.0.0
|
||||
- Dart SDK >= 3.0.0
|
||||
- Android Studio / Xcode
|
||||
|
||||
## Development
|
||||
|
||||
```bash
|
||||
# Install dependencies
|
||||
flutter pub get
|
||||
|
||||
# Run on Android
|
||||
flutter run
|
||||
|
||||
# Run on iOS
|
||||
flutter run -d ios
|
||||
|
||||
# Build APK
|
||||
flutter build apk
|
||||
|
||||
# Build iOS
|
||||
flutter build ios
|
||||
```
|
||||
|
||||
## Environment Variables
|
||||
|
||||
Create `.env` file:
|
||||
```
|
||||
API_URL=http://localhost/api/v1
|
||||
```
|
||||
@@ -1,71 +0,0 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
|
||||
void main() {
|
||||
runApp(const MyApp());
|
||||
}
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
const MyApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp.router(
|
||||
title: 'GoodGo Client',
|
||||
theme: ThemeData(
|
||||
colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
|
||||
useMaterial3: true,
|
||||
),
|
||||
routerConfig: _router,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
final GoRouter _router = GoRouter(
|
||||
routes: <RouteBase>[
|
||||
GoRoute(
|
||||
path: '/',
|
||||
builder: (BuildContext context, GoRouterState state) {
|
||||
return const HomeScreen();
|
||||
},
|
||||
),
|
||||
GoRoute(
|
||||
path: '/login',
|
||||
builder: (BuildContext context, GoRouterState state) {
|
||||
return const LoginScreen();
|
||||
},
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
class HomeScreen extends StatelessWidget {
|
||||
const HomeScreen({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('GoodGo Client'),
|
||||
),
|
||||
body: const Center(
|
||||
child: Text('Welcome to GoodGo Client'),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class LoginScreen extends StatelessWidget {
|
||||
const LoginScreen({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('Login'),
|
||||
),
|
||||
body: const Center(
|
||||
child: Text('Login Screen'),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
name: app_client
|
||||
description: GoodGo Platform Client Mobile Application (Flutter)
|
||||
publish_to: 'none'
|
||||
version: 1.0.0+1
|
||||
|
||||
environment:
|
||||
sdk: '>=3.0.0 <4.0.0'
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
cupertino_icons: ^1.0.6
|
||||
http: ^1.1.0
|
||||
shared_preferences: ^2.2.2
|
||||
provider: ^6.1.1
|
||||
go_router: ^13.0.0
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
flutter_lints: ^3.0.0
|
||||
|
||||
flutter:
|
||||
uses-material-design: true
|
||||
Reference in New Issue
Block a user