mirror of
https://github.com/chenasraf/pantry-flutter.git
synced 2026-05-17 17:28:03 +00:00
fix: improve rtl layout spacings
This commit is contained in:
@@ -75,7 +75,11 @@ class _NotesWallBody extends StatelessWidget {
|
||||
Column(
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(right: 4, top: 8, bottom: 8),
|
||||
padding: const EdgeInsetsDirectional.only(
|
||||
end: 4,
|
||||
top: 8,
|
||||
bottom: 8,
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
const Spacer(),
|
||||
|
||||
@@ -142,7 +142,7 @@ class _NotificationTile extends StatelessWidget {
|
||||
onDismissed: (_) => onDismiss(),
|
||||
background: Container(
|
||||
color: theme.colorScheme.errorContainer,
|
||||
alignment: Alignment.centerRight,
|
||||
alignment: AlignmentDirectional.centerEnd,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 24),
|
||||
child: Icon(Icons.delete, color: theme.colorScheme.onErrorContainer),
|
||||
),
|
||||
|
||||
@@ -115,7 +115,12 @@ class _TopBar extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(left: 16, top: 8, bottom: 8, right: 4),
|
||||
padding: const EdgeInsetsDirectional.only(
|
||||
start: 16,
|
||||
top: 8,
|
||||
bottom: 8,
|
||||
end: 4,
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
if (controller.currentFolderId != null) ...[
|
||||
|
||||
@@ -18,7 +18,7 @@ class ChecklistSelector extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(left: 16, top: 8, bottom: 8),
|
||||
padding: const EdgeInsetsDirectional.only(start: 16, top: 8, bottom: 8),
|
||||
child: DropdownButtonFormField<int>(
|
||||
initialValue: currentList?.id,
|
||||
decoration: const InputDecoration(
|
||||
|
||||
@@ -372,7 +372,7 @@ class _RecurrenceDialogState extends State<_RecurrenceDialog> {
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(left: 4),
|
||||
padding: const EdgeInsetsDirectional.only(start: 4),
|
||||
child: Text(
|
||||
_repeatFromCompletion
|
||||
? r.countFromCompletionHintOn
|
||||
|
||||
@@ -52,7 +52,7 @@ class UserMenuButton extends StatelessWidget {
|
||||
: const CircleAvatar(radius: 18, child: Icon(Icons.person, size: 22));
|
||||
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(right: 8),
|
||||
padding: const EdgeInsetsDirectional.only(end: 8),
|
||||
child: Material(
|
||||
color: Colors.transparent,
|
||||
shape: const CircleBorder(),
|
||||
|
||||
Reference in New Issue
Block a user