mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Default login for Flutter client beta
This commit is contained in:
@@ -6,7 +6,7 @@ A Flutter mobile application for [Sure](https://github.com/we-promise/sure) pers
|
||||
|
||||
This app is a mobile companion to the [Sure personal finance management system](https://github.com/we-promise/sure). It provides basic functionality to:
|
||||
|
||||
- **Login** - Authenticate with your Sure Finance server
|
||||
- **Login** - Authenticate with your Sure Finances server
|
||||
- **View Balance** - See all your accounts and their balances
|
||||
|
||||
For more detailed technical documentation, see [docs/TECHNICAL_GUIDE.md](docs/TECHNICAL_GUIDE.md).
|
||||
@@ -54,7 +54,7 @@ This step generates the app icons for all platforms based on the source icon in
|
||||
|
||||
### 4. Configure API Endpoint
|
||||
|
||||
Edit `lib/services/api_config.dart` to point to your Sure Finance server:
|
||||
Edit `lib/services/api_config.dart` to point to your Sure Finances server:
|
||||
|
||||
```dart
|
||||
// For local development with Android emulator
|
||||
@@ -113,7 +113,7 @@ flutter run -d chrome
|
||||
|
||||
## API Integration
|
||||
|
||||
This app integrates with the Sure Finance Rails API:
|
||||
This app integrates with the Sure Finances Rails API:
|
||||
|
||||
### Authentication
|
||||
- `POST /api/v1/auth/login` - User authentication
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# Sure Mobile - Technical Documentation
|
||||
# Sure Flutter - Technical Documentation
|
||||
|
||||
## Project Overview
|
||||
|
||||
Sure Mobile is the mobile application for the [Sure Personal Finance Management System](https://github.com/we-promise/sure), developed with Flutter framework and supporting both Android and iOS platforms. This application provides core mobile functionality for the Sure finance management system, allowing users to view and manage their financial accounts anytime, anywhere.
|
||||
Sure Flutter is a mobile client for the [Sure Finances Management System](https://github.com/we-promise/sure), developed with Flutter framework and supporting both Android and iOS platforms. This application provides core mobile functionality for the Sure Finances management system, allowing users to view and manage their financial accounts anytime, anywhere.
|
||||
|
||||
### Backend Relationship
|
||||
|
||||
This application is a client app for the Sure Finance Management System and requires connection to the Sure backend server (Rails API) to function properly. Backend project: https://github.com/we-promise/sure
|
||||
This application is a client app for the Sure Finances Management System and requires connection to the Sure backend server (Rails API) to function properly. Backend project: https://github.com/we-promise/sure
|
||||
|
||||
## Core Features
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ void main() async {
|
||||
await ApiConfig.initialize();
|
||||
|
||||
// Add initial log entry
|
||||
LogService.instance.info('App', 'Sure Finance app starting...');
|
||||
LogService.instance.info('App', 'Sure app starting...');
|
||||
|
||||
runApp(const SureApp());
|
||||
}
|
||||
@@ -62,7 +62,7 @@ class SureApp extends StatelessWidget {
|
||||
),
|
||||
],
|
||||
child: MaterialApp(
|
||||
title: 'Sure Finance',
|
||||
title: 'Sure Finances',
|
||||
debugShowCheckedModeBanner: false,
|
||||
theme: ThemeData(
|
||||
fontFamily: 'Geist',
|
||||
|
||||
@@ -17,8 +17,8 @@ class LoginScreen extends StatefulWidget {
|
||||
|
||||
class _LoginScreenState extends State<LoginScreen> {
|
||||
final _formKey = GlobalKey<FormState>();
|
||||
final _emailController = TextEditingController();
|
||||
final _passwordController = TextEditingController();
|
||||
final _emailController = TextEditingController(text: 'user@example.com');
|
||||
final _passwordController = TextEditingController(text: 'Password1!');
|
||||
final _otpController = TextEditingController();
|
||||
bool _obscurePassword = true;
|
||||
late final TapGestureRecognizer _signUpTapRecognizer;
|
||||
|
||||
Reference in New Issue
Block a user