Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 134 additions & 0 deletions .dart_tool/package_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
{
"configVersion": 2,
"packages": [
{
"name": "async",
"rootUri": "file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.9.0",
"packageUri": "lib/",
"languageVersion": "2.14"
},
{
"name": "boolean_selector",
"rootUri": "file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "characters",
"rootUri": "file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.2.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "clock",
"rootUri": "file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "collection",
"rootUri": "file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.16.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "fake_async",
"rootUri": "file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.3.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "flutter",
"rootUri": "file:///Users/quangnguyen2203/development/flutter/packages/flutter",
"packageUri": "lib/",
"languageVersion": "2.17"
},
{
"name": "flutter_test",
"rootUri": "file:///Users/quangnguyen2203/development/flutter/packages/flutter_test",
"packageUri": "lib/",
"languageVersion": "2.17"
},
{
"name": "matcher",
"rootUri": "file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.12",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "material_color_utilities",
"rootUri": "file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.5",
"packageUri": "lib/",
"languageVersion": "2.13"
},
{
"name": "meta",
"rootUri": "file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.8.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "path",
"rootUri": "file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.2",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "sky_engine",
"rootUri": "file:///Users/quangnguyen2203/development/flutter/bin/cache/pkg/sky_engine",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "source_span",
"rootUri": "file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.9.0",
"packageUri": "lib/",
"languageVersion": "2.14"
},
{
"name": "stack_trace",
"rootUri": "file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.10.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "stream_channel",
"rootUri": "file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.1.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "string_scanner",
"rootUri": "file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "term_glyph",
"rootUri": "file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "test_api",
"rootUri": "file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.4.12",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "vector_math",
"rootUri": "file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.2",
"packageUri": "lib/",
"languageVersion": "2.14"
},
{
"name": "custom_pop_up_menu",
"rootUri": "../",
"packageUri": "lib/",
"languageVersion": "2.17"
}
],
"generated": "2022-10-28T02:05:49.748624Z",
"generator": "pub",
"generatorVersion": "2.18.2"
}
85 changes: 85 additions & 0 deletions .dart_tool/package_config_subset
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
async
2.14
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.9.0/
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.9.0/lib/
boolean_selector
2.12
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib/
characters
2.12
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.2.1/
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.2.1/lib/
clock
2.12
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.1/
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.1/lib/
collection
2.12
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.16.0/
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.16.0/lib/
fake_async
2.12
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.3.1/
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.3.1/lib/
matcher
2.12
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.12/
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.12/lib/
material_color_utilities
2.13
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.5/
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.5/lib/
meta
2.12
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.8.0/
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.8.0/lib/
path
2.12
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.2/
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.2/lib/
source_span
2.14
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.9.0/
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.9.0/lib/
stack_trace
2.12
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.10.0/
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.10.0/lib/
stream_channel
2.12
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.1.0/
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.1.0/lib/
string_scanner
2.12
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.1/
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.1/lib/
term_glyph
2.12
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.1/
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.1/lib/
test_api
2.12
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.4.12/
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.4.12/lib/
vector_math
2.14
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.2/
file:///Users/quangnguyen2203/development/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.2/lib/
sky_engine
2.12
file:///Users/quangnguyen2203/development/flutter/bin/cache/pkg/sky_engine/
file:///Users/quangnguyen2203/development/flutter/bin/cache/pkg/sky_engine/lib/
flutter
2.17
file:///Users/quangnguyen2203/development/flutter/packages/flutter/
file:///Users/quangnguyen2203/development/flutter/packages/flutter/lib/
flutter_test
2.17
file:///Users/quangnguyen2203/development/flutter/packages/flutter_test/
file:///Users/quangnguyen2203/development/flutter/packages/flutter_test/lib/
custom_pop_up_menu
2.17
file:///Users/quangnguyen2203/project/flutter_packages/custom_pop_up_menu/
file:///Users/quangnguyen2203/project/flutter_packages/custom_pop_up_menu/lib/
2
1 change: 1 addition & 0 deletions .dart_tool/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.3.5
4 changes: 2 additions & 2 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 28
compileSdkVersion 31

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand All @@ -40,7 +40,7 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.custom_pop_up_menu"
minSdkVersion 16
targetSdkVersion 28
targetSdkVersion 31
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
Expand Down
6 changes: 5 additions & 1 deletion example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
<application
android:name="io.flutter.app.FlutterApplication"
android:name="${applicationName}"
android:label="custom_pop_up_menu"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
Expand All @@ -20,6 +21,9 @@
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import io.flutter.Log;

import io.flutter.embedding.engine.FlutterEngine;

Expand All @@ -12,6 +13,7 @@
*/
@Keep
public final class GeneratedPluginRegistrant {
private static final String TAG = "GeneratedPluginRegistrant";
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
}
}
4 changes: 2 additions & 2 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
buildscript {
ext.kotlin_version = '1.3.50'
ext.kotlin_version = '1.6.20'
repositories {
google()
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.android.tools.build:gradle:4.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
2 changes: 1 addition & 1 deletion example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
4 changes: 2 additions & 2 deletions example/android/local.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sdk.dir=/Users/wangyifan/Library/Android/sdk
flutter.sdk=/Users/wangyifan/flutter
sdk.dir=/Users/quangnguyen2203/Library/Android/sdk
flutter.sdk=/Users/quangnguyen2203/development/flutter
flutter.buildMode=debug
flutter.versionName=1.0.0
flutter.versionCode=1
2 changes: 2 additions & 0 deletions example/ios/Runner/GeneratedPluginRegistrant.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Generated file. Do not edit.
//

// clang-format off

#ifndef GeneratedPluginRegistrant_h
#define GeneratedPluginRegistrant_h

Expand Down
2 changes: 2 additions & 0 deletions example/ios/Runner/GeneratedPluginRegistrant.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Generated file. Do not edit.
//

// clang-format off

#import "GeneratedPluginRegistrant.h"

@implementation GeneratedPluginRegistrant
Expand Down
11 changes: 7 additions & 4 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,19 @@ class _MyHomePageState extends State<MyHomePage> {
title: Text('CustomPopupMenu'),
actions: <Widget>[
CustomPopupMenu(
arrowColor: Colors.white,
arrowSize: 20,
child: Container(
child: Icon(Icons.add_circle_outline, color: Colors.white),
padding: EdgeInsets.all(20),
),
menuBuilder: () => ClipRRect(
borderRadius: BorderRadius.circular(5),
child: Container(
color: const Color(0xFF4C4C4C),
decoration: BoxDecoration(
color: Colors.white,
border: Border.all(),
borderRadius: BorderRadius.circular(5),
),
child: IntrinsicWidth(
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
Expand All @@ -108,7 +113,6 @@ class _MyHomePageState extends State<MyHomePage> {
Icon(
item.icon,
size: 15,
color: Colors.white,
),
Expanded(
child: Container(
Expand All @@ -118,7 +122,6 @@ class _MyHomePageState extends State<MyHomePage> {
child: Text(
item.title,
style: TextStyle(
color: Colors.white,
fontSize: 12,
),
),
Expand Down
Loading