Repository: flutter
Issue: CarouselView Text wraps while scrolling instead of fading
Labels: c: new feature,framework,f: material design,has reproducible steps,P3,team-design,triaged-design,found in release: 3.24

### Steps to reproduce

1- Try to use CarouselView with the a child that uses a stack
2- Put different text widgets inside the stack.



### Expected results

Text will fade as per the [material guidelines](https://m3.material.io/components/carousel/overview)  


https://github.com/user-attachments/assets/026dd90c-181d-4cd8-bd59-0f86bbbe553b



### Actual results

Text scales while scrolling between items

### Code sample

<details open><summary>Code sample</summary>

```dart
// Copyright 2019 the Dart project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file.

import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorSchemeSeed: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  final String title;

  const MyHomePage({
    super.key,
    required this.title,
  });

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
 
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            const Text(
              'CarouselExample',
            ),
            Expanded(
              child: ConstrainedBox(
                constraints: BoxConstraints(maxHeight: 500),
                child: CarouselView(
                    itemExtent: 200,
                    itemSnapping: true,
                    scrollDirection: Axis.horizontal,
                    children: List.generate(
                      10,
                      (index) {
                            return Stack(children: [
                          Positioned(
                            right: 16,
                              left: 16,
                              top: 16,
                              child: Text("this is a long text this is a long text, this is text at index $index")),
                        ]);
                      },
                    ).toList()),
              ),
            )
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ),
    );
  }
}

```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

https://github.com/user-attachments/assets/ea9928e9-d517-4445-a8a2-e236e5799783

</details>


 


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.0, on macOS 14.3.1 23D60 darwin-arm64, locale en-SA)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/to/macos-android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2024.1.2)
[✓] VS Code (version 1.92.0)
[✓] VS Code (version 1.89.0-insider)
[✓] Connected device (6 available)            
    ! Error: Browsing on the local area network for iOS’s iPhone X. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for Mosab’s Apple Watch. Ensure the device is unlocked and discoverable via Bluetooth. (code -27)
[✓] Network resources

! Doctor found issues in 1 category.```

</details>