Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios 滚动有试验过吗? 我这边实验有问题。 #10

Open
79121262 opened this issue Dec 27, 2024 · 1 comment
Open

ios 滚动有试验过吗? 我这边实验有问题。 #10

79121262 opened this issue Dec 27, 2024 · 1 comment

Comments

@79121262
Copy link

No description provided.

@yakagami
Copy link
Owner

yakagami commented Dec 27, 2024

Hi, can you explain more about your issue? Feel free to respond in Chinese if it is more continent, I can use a translation tool. When you say iOS scrolling does not work, do you mean that BouncingScrollPhysics does not work or do you mean that the zoom_view package does not work on iOS devices?

If the package is not working at all on iOS devices, what is the behavior of the following code for you on your device:

import 'package:zoom_view/zoom_view.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MaterialApp(
    home: ZoomViewExample(),
  ));
}

class ZoomViewExample extends StatefulWidget {
  const ZoomViewExample({super.key});

  @override
  State<ZoomViewExample> createState() => _ZoomViewExampleState();
}

class _ZoomViewExampleState extends State<ZoomViewExample> {
  ScrollController controller = ScrollController();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ZoomView(
        controller: controller,
        child: ListView.builder(
            controller: controller,
            itemCount: 10000,
            itemBuilder: (context, index) {
              return Center(
                  child: Text("text $index")
              );
            }
        ),
      ),
    );
  }
}

I may be able to help if you describe the problem more clearly. (eg. with a screen recording)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants