Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
settings_screen.dart File Reference
import package;
import easy_localization.dart;
import material.dart;
import flutter_bloc.dart;
import core;
import api;
import api_client.dart;
import services;
import service_locator.dart;
import user_info_service.dart;
import ui;
import theme;
import color_palette.dart;
import widgets;
import custom_scaffold.dart;
import logo_header.dart;
import auth;
import presentation;
import bloc;
import authentication_bloc;
import authentication_bloc.dart;
import models;
import document_model.dart;
import screens;
import pdf_viewer_screen.dart;
import document_service.dart;
Include dependency graph for settings_screen.dart:

Go to the source code of this file.

Classes

class  StatefulWidget

Functions

override void initState ()
Future< void_fetchEngagement () async
Future< void_fetchDocuments () async
override Widget build (BuildContext context)
Widget _buildProfileHeader ()
Widget _buildMetricsRow (double engagement)
Widget _buildDivider ()
Widget _buildMetricItem ({ required IconData icon, required String title, required String value, required Color color, })
Widget _buildDocumentsSection (BuildContext context, List< DocumentModel > documents, bool isLoading)
void _openDocument (DocumentModel document, BuildContext context)
Widget _buildDocumentItem ({ required String title, required Color color, required VoidCallback onTap, IconData icon=Icons.insert_drive_file_outlined, })
Future< void_handleLogout (BuildContext context) async

Variables

class ProfileSettingsScreen extends StatefulWidget _documentService = DocumentService()
final ApiClient _apiClient = sl<ApiClient>()
List< DocumentModel_documents = []
bool _isLoading = true
double _engagement = 0

Function Documentation

◆ _buildDivider()

Widget _buildDivider ( )

Definition at line 319 of file settings_screen.dart.

Here is the caller graph for this function:

◆ _buildDocumentItem()

Widget _buildDocumentItem ( { required String title, required Color color, required VoidCallback onTap, IconData icon=Icons.insert_drive_file_outlined, } )

Definition at line 496 of file settings_screen.dart.

Here is the caller graph for this function:

◆ _buildDocumentsSection()

Widget _buildDocumentsSection ( BuildContext context,
List< DocumentModel > documents,
bool isLoading )

Definition at line 374 of file settings_screen.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _buildMetricItem()

Widget _buildMetricItem ( { required IconData icon, required String title, required String value, required Color color, } )

Definition at line 327 of file settings_screen.dart.

Here is the caller graph for this function:

◆ _buildMetricsRow()

Widget _buildMetricsRow ( double engagement)

Definition at line 277 of file settings_screen.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _buildProfileHeader()

Widget _buildProfileHeader ( )

Definition at line 108 of file settings_screen.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _fetchDocuments()

Future< void > _fetchDocuments ( )

Definition at line 56 of file settings_screen.dart.

Here is the caller graph for this function:

◆ _fetchEngagement()

Future< void > _fetchEngagement ( )

Definition at line 37 of file settings_screen.dart.

Here is the caller graph for this function:

◆ _handleLogout()

Future< void > _handleLogout ( BuildContext context)

Definition at line 572 of file settings_screen.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _openDocument()

void _openDocument ( DocumentModel document,
BuildContext context )

Definition at line 487 of file settings_screen.dart.

◆ build()

override Widget build ( BuildContext context)

Definition at line 85 of file settings_screen.dart.

Here is the call graph for this function:

◆ initState()

override void initState ( )

Definition at line 31 of file settings_screen.dart.

Here is the call graph for this function:

Variable Documentation

◆ _apiClient

final ApiClient _apiClient = sl<ApiClient>()

Definition at line 25 of file settings_screen.dart.

◆ _documents

List<DocumentModel> _documents = []

Definition at line 26 of file settings_screen.dart.

◆ _documentService

class ProfileSettingsScreen extends StatefulWidget _documentService = DocumentService()

◆ _engagement

double _engagement = 0

Definition at line 28 of file settings_screen.dart.

◆ _isLoading

bool _isLoading = true

Definition at line 27 of file settings_screen.dart.