Skip to content

Commit 7729330

Browse files
committed
RTL: mirror padding in the conflict rows, merge banner and branch sync icons
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Faq4eeM46Ge5GqnEhknb77
1 parent c12b1e8 commit 7729330

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎flutter/lib/repo/branch_sidebar.dart‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ class _SectionHeaderState extends State<_SectionHeader> {
871871
Widget build(BuildContext context) {
872872
final b = context.branchi;
873873
return Padding(
874-
padding: const EdgeInsets.only(left: 8, bottom: 6),
874+
padding: const EdgeInsetsDirectional.only(start: 8, bottom: 6),
875875
child: SizedBox(
876876
height: 22,
877877
child: Row(
@@ -919,7 +919,7 @@ class _SectionHeaderState extends State<_SectionHeader> {
919919
),
920920
if (widget.count != null)
921921
Padding(
922-
padding: const EdgeInsets.only(right: 8),
922+
padding: const EdgeInsetsDirectional.only(end: 8),
923923
child: Text(
924924
'${widget.count}',
925925
style: TextStyle(fontSize: 11, color: b.muted),
@@ -1237,7 +1237,7 @@ class _SyncState extends StatelessWidget {
12371237
return Tooltip(
12381238
message: translate('branch_local_only'),
12391239
child: Padding(
1240-
padding: const EdgeInsets.only(left: 6),
1240+
padding: const EdgeInsetsDirectional.only(start: 6),
12411241
child: Icon(Icons.cloud_off_outlined, size: 13, color: b.off),
12421242
),
12431243
);
@@ -1252,7 +1252,7 @@ class _SyncState extends StatelessWidget {
12521252
.replaceAll('{n}', '${branch.ahead}')
12531253
.replaceAll('{remote}', counterpart),
12541254
child: Padding(
1255-
padding: const EdgeInsets.only(left: 6),
1255+
padding: const EdgeInsetsDirectional.only(start: 6),
12561256
child: Text('↑${branch.ahead}', style: mono.copyWith(color: b.add)),
12571257
),
12581258
),
@@ -1262,15 +1262,15 @@ class _SyncState extends StatelessWidget {
12621262
.replaceAll('{n}', '${branch.behind}')
12631263
.replaceAll('{remote}', counterpart),
12641264
child: Padding(
1265-
padding: const EdgeInsets.only(left: 6),
1265+
padding: const EdgeInsetsDirectional.only(start: 6),
12661266
child:
12671267
Text('↓${branch.behind}', style: mono.copyWith(color: b.accent)),
12681268
),
12691269
),
12701270
Tooltip(
12711271
message: translate('branch_on_remote').replaceAll('{remote}', counterpart),
12721272
child: Padding(
1273-
padding: const EdgeInsets.only(left: 6),
1273+
padding: const EdgeInsetsDirectional.only(start: 6),
12741274
child: Icon(Icons.cloud_outlined, size: 13, color: b.muted),
12751275
),
12761276
),

‎flutter/lib/repo/working_changes_panel.dart‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ class _MergeBanner extends StatelessWidget {
725725
: state.message.split('\n').first;
726726
return Container(
727727
margin: const EdgeInsets.fromLTRB(12, 12, 12, 0),
728-
padding: const EdgeInsets.fromLTRB(12, 10, 4, 2),
728+
padding: const EdgeInsetsDirectional.fromSTEB(12, 10, 4, 2),
729729
decoration: BoxDecoration(
730730
color: b.mod.withValues(alpha: 0.08),
731731
border: Border.all(color: b.mod.withValues(alpha: 0.35)),
@@ -844,7 +844,7 @@ class _ConflictRow extends StatelessWidget {
844844
onTap: onTap,
845845
onDoubleTap: onOpen,
846846
child: Padding(
847-
padding: const EdgeInsets.fromLTRB(20, 6, 12, 6),
847+
padding: const EdgeInsetsDirectional.fromSTEB(20, 6, 12, 6),
848848
child: Column(
849849
crossAxisAlignment: CrossAxisAlignment.start,
850850
children: [
@@ -872,7 +872,7 @@ class _ConflictRow extends StatelessWidget {
872872
),
873873
const SizedBox(height: 6),
874874
Padding(
875-
padding: const EdgeInsets.only(left: 18),
875+
padding: const EdgeInsetsDirectional.only(start: 18),
876876
child: Wrap(
877877
spacing: 6,
878878
children: [

0 commit comments

Comments
 (0)