Skip to content

Commit e971bdd

Browse files
committed
- Add devtools_options.yaml configuration files
- Add devtools_options.yaml example configuration - Update iOS AppDelegate.swift - Fix RTL support in CupertinoControls - Fix RTL support in MaterialControls
1 parent c7665a3 commit e971bdd

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

devtools_options.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
description: This file stores settings for Dart & Flutter DevTools.
2+
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
3+
extensions:

example/devtools_options.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
description: This file stores settings for Dart & Flutter DevTools.
2+
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
3+
extensions:

example/ios/Runner/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Flutter
22
import UIKit
33

4-
@UIApplicationMain
4+
@main
55
@objc class AppDelegate: FlutterAppDelegate {
66
override func application(
77
_ application: UIApplication,

lib/src/cupertino/cupertino_controls.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ class _CupertinoControlsState extends State<CupertinoControls>
460460
final position = _latestValue.duration - _latestValue.position;
461461

462462
return Padding(
463-
padding: const EdgeInsets.only(right: 12.0),
463+
padding: const EdgeInsets.symmetric(horizontal: 12.0),
464464
child: Text(
465465
'-${formatDuration(position)}',
466466
style: TextStyle(color: iconColor, fontSize: 12.0),

lib/src/material/material_controls.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ class _MaterialControlsState extends State<MaterialControls>
260260
height: barHeight + (chewieController.isFullScreen ? 10.0 : 0),
261261
padding: EdgeInsets.only(
262262
left: 20,
263+
right: 20,
263264
bottom: !chewieController.isFullScreen ? 10.0 : 0,
264265
),
265266
child: SafeArea(
@@ -291,7 +292,7 @@ class _MaterialControlsState extends State<MaterialControls>
291292
if (!chewieController.isLive)
292293
Expanded(
293294
child: Container(
294-
padding: const EdgeInsets.only(right: 20),
295+
padding: const EdgeInsets.symmetric(horizontal: 20),
295296
child: Row(
296297
children: [
297298
_buildProgressBar(),

0 commit comments

Comments
 (0)