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

Fullscreen problem: previous screen visible at the bottom when pushing new screen #228

Closed
albrrt opened this issue Oct 12, 2022 · 4 comments · Fixed by #359
Closed

Fullscreen problem: previous screen visible at the bottom when pushing new screen #228

albrrt opened this issue Oct 12, 2022 · 4 comments · Fixed by #359

Comments

@albrrt
Copy link

albrrt commented Oct 12, 2022

  1. First page is red.
  2. Second page is green.

When I push the green page over the red one, there's a small gap running along the bottom edge of the screen where you can see the previous page (red line). This seems to only happen in fullscreen.

Fullscreen_issue

I am working at 1920 x 1080px resolution and my screen is 1920 x 1080px.

I'm using Flutter 3.3.2 with window_manager 0.2.7.

Here's the code:

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

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  // Must add this line.
  await windowManager.ensureInitialized();

  WindowOptions windowOptions = const WindowOptions(
    size: Size(1920, 1080),
    center: true,
    backgroundColor: Colors.transparent,
    skipTaskbar: false,
    titleBarStyle: TitleBarStyle.hidden,
    fullScreen: true,
  );

  windowManager.setResizable(false);

  windowManager.waitUntilReadyToShow(windowOptions, () async {
    await windowManager.show();
    await windowManager.focus();
  });

  runApp(const MyApp());
}

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        debugShowCheckedModeBanner: false,
        home: Scaffold(
            backgroundColor: Colors.red,
            body: Builder(
              builder: (context) => ElevatedButton(
                  onPressed: () => Navigator.push(
                        context,
                        MaterialPageRoute(
                            builder: (context) => const Scaffold(
                                  backgroundColor: Colors.green,
                                  body: SizedBox(),
                                )),
                      ),
                  child: const Text("Push new page")),
            )));
  }
}
@Firemanpl
Copy link

Firemanpl commented Dec 27, 2022

Did you fix it ? [Same or diffrent problem]

@damywise
Copy link
Contributor

@albrrt @Firemanpl can you share the OS version? Ex: Windows 10 10.0.19042

@Firemanpl
Copy link

Wersja Windows 10 Pro
Wersja 22H2
Zainstalowano dnia ‎18.‎04.‎2022
Kompilacja systemu operacyjnego 19045.2364
Możliwości Windows Feature Experience Pack 120.2212.4190.0

@albrrt
Copy link
Author

albrrt commented Jun 1, 2023

@damywise apologies for the late reply.

My Windows version is now 10.0.19045.2965 (latest version as of today) and the problem still persists.

Thank you

damywise pushed a commit to damywise/window_manager that referenced this issue Jun 26, 2023
…om fullscreen

- Removes the line that `cuts the app at the bottom by the pixel to prevent jitter when resizing app`
- Remove the line that `cuts the app by 3 pixels at the bottom when full screen`
- Fixes leanflutter#311, leanflutter#266, leanflutter#228, leanflutter#355, leanflutter#237
lijy91 pushed a commit that referenced this issue Jul 1, 2023
…om fullscreen (#359)

- Removes the line that `cuts the app at the bottom by the pixel to prevent jitter when resizing app`
- Remove the line that `cuts the app by 3 pixels at the bottom when full screen`
- Fixes #311, #266, #228, #355, #237
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants