Repository: flutter
Issue: `FloatingActionButtonLocation.endContained` doesn't locate in `BottomAppBar` when `persistentFooterButtons` is not null
Labels: framework,f: material design,has reproducible steps,P2,team-design,triaged-design,found in release: 3.16,found in release: 3.19

### Steps to reproduce

1. Copy code example.
2. Run it.

### Expected results

`FloatingActionButton` center in the end of `BottomAppBar`, not `persistentFooterButtons` and `BottomAppBar`.

### Actual results

![image](https://github.com/flutter/flutter/assets/29329988/97fc1dda-81ce-41dc-8e3b-537abc265720)


### Code sample

<details open><summary>Code sample</summary>

```dart
Scaffold(
  persistentFooterButtons: [
    TextButton(onPressed: () {}, child: const Text('Button')),
  ],
  bottomNavigationBar: const BottomAppBar(),
  floatingActionButton: FloatingActionButton(onPressed: () {}),
  floatingActionButtonLocation: FloatingActionButtonLocation.endContained,
);
```

</details>


### Logs

_No response_

### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[√] Flutter (Channel stable, 3.16.3, on Microsoft Windows [版本 10.0.22631.3007], locale
    zh-CN)
    • Flutter version 3.16.3 on channel stable at D:\Flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b0366e0a3f (6 weeks ago), 2023-12-05 19:46:39 -0800
    • Engine revision 54a7145303
    • Dart version 3.2.3
    • DevTools version 2.28.4

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\28642\AppData\Local\Android\Sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = C:\Users\28642\AppData\Local\Android\Sdk
    • Java binary at: D:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.4)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.7.34031.279
    • Windows 10 SDK version 10.0.22000.0

[√] Android Studio (version 2023.1)
    • Android Studio at D:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [版本 10.0.22631.3007]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 120.0.6099.216
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 120.0.2210.144

[√] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>