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

[Bug] MacOS does not close app with keyboard Cmd-Q #91

Closed
AtlasAutocode opened this issue Oct 31, 2024 · 2 comments
Closed

[Bug] MacOS does not close app with keyboard Cmd-Q #91

AtlasAutocode opened this issue Oct 31, 2024 · 2 comments
Labels
bug Something isn't working stale

Comments

@AtlasAutocode
Copy link

Steps to reproduce the bug

  1. Create a simple app using PlutoGrid
  2. Run the program (MacOS desktop) and close the app using keyboard Cmd-Q. App closes.
  3. Run the program and click on a grid row. Now try to close the app using keyboard Cmd-Q. App does not close.

What am I doing wrong?

Expected results

App should close.

Actual results

App does not close

Code sample

import 'package:flutter/material.dart';
import 'package:pluto_grid_plus/pluto_grid_plus.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,
      ),
      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),
      ),
      body: Container (
        padding: const EdgeInsets.all(15),
    child: PlutoGrid (
      columns: <PlutoColumn>[
        PlutoColumn(title: 'title', field: 'title', type: const PlutoColumnTypeText()),
        PlutoColumn(title: 'data', field: 'data', type: const PlutoColumnTypeText())
          ],
      rows: [
        PlutoRow(cells: {
          'title': PlutoCell(value: 'A'),
          'data': PlutoCell(value: 'd'),
        }),
      ],
      )),
    );
  }
}

Execution Environment

Flutter version
Flutter version is 3.24.3

PlutoGrid version
PlutoGrid version is 8.4.3

OS
MacOS Sonoma 14.6.1

@AtlasAutocode AtlasAutocode added the bug Something isn't working label Oct 31, 2024
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Dec 11, 2024
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

1 participant