homepage layout fix?

This commit is contained in:
Juan Marulanda De Los Rios 2025-06-23 11:40:32 -04:00
parent 3410007f55
commit fb31051b03

View File

@ -148,16 +148,6 @@ class _HomeScreenState extends State<HomeScreen> with TickerProviderStateMixin {
builder: (context) =>SonicEmailView( builder: (context) =>SonicEmailView(
email: email, email: email,
emailHTML: emailContent[0]) emailHTML: emailContent[0])
// builder: (context) => EmailView(
// emailContent: emailContent,
// from: email.from,
// name: email.name,
// to: email.to.toString(),
// subject: email.subject,
// date: email.date.toString(),
// id: email.id.toString(),
// messages: [email.id],
// ),
), ),
); );
}, },
@ -165,28 +155,8 @@ class _HomeScreenState extends State<HomeScreen> with TickerProviderStateMixin {
}, },
separatorBuilder: (context, index) => Divider(), separatorBuilder: (context, index) => Divider(),
), ),
// child: Column(
// mainAxisAlignment: MainAxisAlignment.center,
// children: [
// Text("Results for: $query", style: TextStyle(fontSize: 24)),
// // Display the actual data
// Text(result[0].name), // Accessing the first result safely
// Text(result[0].from), // Displaying the 'from' field as an example
// Text(result[0].hash),
// Text(result[0].subject),
// Text(result[0].uid.toString()),
// Text(result[0].list),
// Text(result[0].id),
// // Add more fields or customize the display
// // SerializableEmailListScreen(emails: result, getEmailContent: getEmailContent)
// // Expanded(
// // child:
// // ),
// ],
); );
// );
} }
}, },
); );
@ -200,7 +170,9 @@ class _HomeScreenState extends State<HomeScreen> with TickerProviderStateMixin {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Padding(
padding: const EdgeInsets.fromLTRB(0, 20, 0 , 20),
child: Scaffold(
key: _scaffoldKey, key: _scaffoldKey,
drawer: FolderDrawer( drawer: FolderDrawer(
apiService: apiService, apiService: apiService,
@ -208,7 +180,9 @@ class _HomeScreenState extends State<HomeScreen> with TickerProviderStateMixin {
_emailPageKey.currentState?.updateSelectedFolder(folder); _emailPageKey.currentState?.updateSelectedFolder(folder);
}, },
), ),
body: Stack( body: Padding(
padding: const EdgeInsets.fromLTRB(0, 20, 0, 0),
child: Stack(
children: [ children: [
Row( Row(
children: [ children: [
@ -436,35 +410,8 @@ class _HomeScreenState extends State<HomeScreen> with TickerProviderStateMixin {
), ),
], ],
), ),
),
),
); );
} }
} }
// void _showPopupMenu(BuildContext context, Offset position) async {
// final RenderBox overlay =
// Overlay.of(context).context.findRenderObject() as RenderBox;
// await showMenu<String>(
// context: context,
// position: RelativeRect.fromLTRB(
// position.dx,
// position.dy,
// overlay.size.width - position.dx,
// overlay.size.height - position.dy,
// ),
// items: <PopupMenuEntry<String>>[
// PopupMenuItem<String>(
// value: 'Open',
// child: Text('Open'),
// ),
// PopupMenuItem<String>(
// value: 'Reply',
// child: Text('Reply'),
// ),
// PopupMenuItem<String>(
// value: 'Delete',
// child: Text('Delete'),
// ),
// ],
// );
// }
// }