Skip to content
New issue

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

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

Already on GitHub? # to your account

🐛 padding in ScaffoldPage.scrollable not works #986

Closed
TENX-S opened this issue Dec 11, 2023 · 0 comments
Closed

🐛 padding in ScaffoldPage.scrollable not works #986

TENX-S opened this issue Dec 11, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@TENX-S
Copy link

TENX-S commented Dec 11, 2023

import 'package:fluent_ui/fluent_ui.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(const App());
}

class App extends StatelessWidget {
  const App({super.key});

  @override
  Widget build(BuildContext context) {
    return const FluentApp(
      home: HomePage(),
    );
  }
}

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

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return NavigationView(
      content: ScaffoldPage.scrollable(
        padding: const EdgeInsets.all(0),
        children: const [
          Text('test'),
          Text('test'),
        ],
      ),
    );
  }
}

It seems that EdgeInsets.all(0) works for the vertical part only, we still have the horizontal padding here:
image

@bdlukaa bdlukaa added the bug Something isn't working label Dec 14, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants