Skip to content

Commit 65f8aaf

Browse files
committed
rename to native_context_menu
1 parent c1d83af commit 65f8aaf

27 files changed

+155
-202
lines changed

.idea/libraries/Dart_SDK.xml

-19
This file was deleted.

.idea/modules.xml

-10
This file was deleted.

.idea/runConfigurations/example_lib_main_dart.xml

-6
This file was deleted.

.idea/workspace.xml

-45
This file was deleted.

.metadata

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: f4abaa0735eba4dfd8f33f73363911d63931fe03
7+
revision: 4cc385b4b84ac2f816d939a49ea1f328c4e0b48e
88
channel: stable
99

1010
project_type: plugin

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
# context_menu
1+
# native_context_menu
22

33
Native context menu for flutter apps
44

5-
[![lesnitsky.dev](https://lesnitsky.dev/shield.svg?hash=69464)](https://lesnitsky.dev?utm_source=context_menu)
6-
[![GitHub stars](https://img.shields.io/github/stars/lesnitsky/flutter_context_menu.svg?style=social)](https://github.com/lesnitsky/flutter_context_menu)
5+
[![lesnitsky.dev](https://lesnitsky.dev/shield.svg?hash=69464)](https://lesnitsky.dev?utm_source=native_context_menu)
6+
[![GitHub stars](https://img.shields.io/github/stars/lesnitsky/native_context_menu.svg?style=social)](https://github.com/lesnitsky/native_context_menu)
77
[![Twitter Follow](https://img.shields.io/twitter/follow/lesnitsky_dev.svg?label=Follow%20me&style=social)](https://twitter.com/lesnitsky_dev)
88

99
## Installation
1010

1111
```bash
12-
flutter pub add context_menu
12+
flutter pub add native_context_menu
1313
```
1414

1515
## Usage
1616

1717
```dart
18-
import 'package:context_menu/context_menu.dart';
18+
import 'package:native_context_menu/native_context_menu.dart';
1919
import 'package:flutter/material.dart';
2020
2121
void main() {
@@ -80,6 +80,6 @@ MIT
8080

8181
---
8282

83-
[![lesnitsky.dev](https://lesnitsky.dev/shield.svg?hash=69464)](https://lesnitsky.dev?utm_source=context_menu)
84-
[![GitHub stars](https://img.shields.io/github/stars/lesnitsky/flutter_context_menu.svg?style=social)](https://github.com/lesnitsky/flutter_context_menu)
83+
[![lesnitsky.dev](https://lesnitsky.dev/shield.svg?hash=69464)](https://lesnitsky.dev?utm_source=native_context_menu)
84+
[![GitHub stars](https://img.shields.io/github/stars/lesnitsky/native_context_menu.svg?style=social)](https://github.com/lesnitsky/native_context_menu)
8585
[![Twitter Follow](https://img.shields.io/twitter/follow/lesnitsky_dev.svg?label=Follow%20me&style=social)](https://twitter.com/lesnitsky_dev)

analysis_options.yaml

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
include: package:pedantic/analysis_options.yaml
1+
include: package:flutter_lints/flutter.yaml
22

3-
linter:
4-
rules:
5-
- always_declare_return_types
6-
- always_put_required_named_parameters_first
3+
# Additional information about this file can be found at
4+
# https://dart.dev/guides/language/analysis-options

example/.metadata

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: f4abaa0735eba4dfd8f33f73363911d63931fe03
7+
revision: 4cc385b4b84ac2f816d939a49ea1f328c4e0b48e
88
channel: stable
99

1010
project_type: app

example/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# context_menu_example
1+
# native_context_menu_example
22

3-
Demonstrates how to use the context_menu plugin.
3+
Demonstrates how to use the native_context_menu plugin.
44

55
## Getting Started
66

example/analysis_options.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
7+
8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
11+
12+
linter:
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# included above or to enable additional rules. A list of all available lints
16+
# and their documentation is published at
17+
# https://dart-lang.github.io/linter/lints/index.html.
18+
#
19+
# Instead of disabling a lint rule for the entire project in the
20+
# section below, it can also be suppressed for a single line of code
21+
# or a specific dart file by using the `// ignore: name_of_lint` and
22+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
23+
# producing the lint.
24+
rules:
25+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
26+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27+
28+
# Additional information about this file can be found at
29+
# https://dart.dev/guides/language/analysis-options

example/lib/main.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import 'package:context_menu/context_menu.dart';
1+
import 'package:native_context_menu/native_context_menu.dart';
22
import 'package:flutter/material.dart';
33

44
void main() {
5-
runApp(App());
5+
runApp(const App());
66
}
77

88
class App extends StatefulWidget {

example/macos/Flutter/GeneratedPluginRegistrant.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import FlutterMacOS
66
import Foundation
77

8-
import context_menu
8+
import native_context_menu
99

1010
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
11-
ContextMenuPlugin.register(with: registry.registrar(forPlugin: "ContextMenuPlugin"))
11+
NativeContextMenuPlugin.register(with: registry.registrar(forPlugin: "NativeContextMenuPlugin"))
1212
}

example/macos/Podfile.lock

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
PODS:
2-
- context_menu (0.0.1):
3-
- FlutterMacOS
42
- FlutterMacOS (1.0.0)
3+
- native_context_menu (0.0.1):
4+
- FlutterMacOS
55

66
DEPENDENCIES:
7-
- context_menu (from `Flutter/ephemeral/.symlinks/plugins/context_menu/macos`)
87
- FlutterMacOS (from `Flutter/ephemeral`)
8+
- native_context_menu (from `Flutter/ephemeral/.symlinks/plugins/native_context_menu/macos`)
99

1010
EXTERNAL SOURCES:
11-
context_menu:
12-
:path: Flutter/ephemeral/.symlinks/plugins/context_menu/macos
1311
FlutterMacOS:
1412
:path: Flutter/ephemeral
13+
native_context_menu:
14+
:path: Flutter/ephemeral/.symlinks/plugins/native_context_menu/macos
1515

1616
SPEC CHECKSUMS:
17-
context_menu: b34b97931b9db52af25d162a8f89759c27bd09fe
1817
FlutterMacOS: 57701585bf7de1b3fc2bb61f6378d73bbdea8424
18+
native_context_menu: 8b710e17c5962cf3f005b805eb97cce668b3839a
1919

2020
PODFILE CHECKSUM: 6eac6b3292e5142cfc23bdeb71848a40ec51c14c
2121

0 commit comments

Comments
 (0)