mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-23 11:57:54 +00:00
Refactor code for consistency and readability
- Removed unused imports and commented-out code - Updated class inheritance for AuthState subclasses - Reorganized code structure for better readability - Cleaned up debug print statements and replaced with dart:developer logs
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
import 'dart:developer' as developer;
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class StringHelpers {
|
||||
// TODO ( to Mohammad Salameh): convert this to extension method
|
||||
static String enhanceFileName(File file) {
|
||||
var fileName = " ";
|
||||
final filePath = file.path;
|
||||
debugPrint(filePath);
|
||||
developer.log(filePath);
|
||||
final fileStringArray = filePath.split("/");
|
||||
fileName = fileStringArray.last;
|
||||
if (fileName.length > 20) {
|
||||
|
||||
@@ -207,7 +207,6 @@ abstract class ThemeManager {
|
||||
),
|
||||
|
||||
///card theme
|
||||
//TODO edit card theme
|
||||
cardTheme: const CardTheme(
|
||||
elevation: 0,
|
||||
shape: RoundedRectangleBorder(
|
||||
|
||||
Reference in New Issue
Block a user