Repository: flutter
Issue: [appBar] Actions' item height inconsistency on Material 2
Labels: framework,f: material design,has reproducible steps,P3,team-design,triaged-design,found in release: 3.13,found in release: 3.17

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

As per the `actions` [documentation](https://api.flutter.dev/flutter/material/AppBar/actions.html), 

>The height of each action is constrained to be no bigger than the [toolbarHeight](https://api.flutter.dev/flutter/material/AppBar/toolbarHeight.html)

which means that height can be max to `toolbarHeight`, but a lower height can be set by user, which is correct when using Material3 but not on 2.

The issue can be resolved by changing `line 1022` from `flutter/lib/src/material/app_bar.dart`

from 
```dart
crossAxisAlignment: theme.useMaterial3 ? CrossAxisAlignment.center : CrossAxisAlignment.stretch,
```
        
to
```dart
crossAxisAlignment: CrossAxisAlignment.center,
```

but I don't know why it was this way at first place and what side effects that may have.



### Expected results

The actions' height should not be stretched to toolbar's height.

### Actual results

When not using Material 3, the action's height is stretched to toolbar's height.


### Code sample

<details><summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true, // toggle to see difference
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});
  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
        actions: [
          const SizedBox(
            width: 5,
          ),
          Container(
            height: 10,
            width: 20,
            color: Colors.black,
          ),
          const SizedBox(
            width: 5,
          ),
          Container(
            height: 25,
            width: 20,
            color: Colors.red,
          ),
          const SizedBox(
            width: 5,
          ),
          Container(
            height: 99, // Will be constrained correctly to 56
            width: 20,
            color: Colors.yellow,
          ),
          const SizedBox(
            width: 5,
          ),
          Container(
            height: 45,
            width: 20,
            color: Colors.blue,
          ),
          const SizedBox(
            width: 5,
          ),
        ],
      ),
    );
  }
}

```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

https://github.com/flutter/flutter/assets/52862600/980546bd-ce97-4903-a6d4-2a52c516f82d


[Upload media here]

</details>


### Logs

_No response_

### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.13.9, on macOS 14.1 23B74 darwin-arm64, locale en-GR)
    • Flutter version 3.13.9 on channel stable at /Users/esentis/fvm/versions/stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d211f42860 (2 weeks ago), 2023-10-25 13:42:25 -0700
    • Engine revision 0545f8705d
    • Dart version 3.1.5
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/esentis/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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 11.0.15+0-b2043.56-8887301)

[✓] VS Code (version 1.84.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.76.0

[✓] VS Code (version 1.82.0-insider)
    • VS Code at /Applications/Visual Studio Code - Insiders.app/Contents
    • Flutter extension version 3.73.20230904

[✓] Connected device (3 available)
    • iPhone 15 Pro (mobile) • 9B08ECD7-1A21-4EEE-9755-A7F48E8EC2A0 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-0 (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 14.1 23B74 darwin-arm64
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 119.0.6045.123

[✓] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>