Skip to content

Commit

Permalink
process #190
Browse files Browse the repository at this point in the history
  • Loading branch information
xdd666t committed May 25, 2024
1 parent 29eda9f commit 9897214
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 9 deletions.
51 changes: 51 additions & 0 deletions example/lib/demo/issue190_release.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import 'package:flutter/material.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.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',
builder: FlutterSmartDialog.init(),
navigatorObservers: [FlutterSmartDialog.observer],
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: Scaffold(
body: Center(
child: GestureDetector(
onTap: () {
SmartDialog.show(
tag: '11',
builder: (context) {
return Center(
child: Container(
height: 300,
width: 300,
color: Colors.blue,
),
);
},
animationType: SmartAnimationType.centerFade_otherSlide,
backDismiss: true,
keepSingle: true,
debounce: true,
);
},
child: Container(
width: 200,
height: 200,
color: Colors.red,
),
),
),
),
);
}
}
8 changes: 8 additions & 0 deletions lib/src/widget/helper/smart_overly_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ class SmartOverlayController {

// show
Future<void> show() async {
if (_onShow == null) {
return;
}

_onShow?.call();
var completer = Completer();
widgetsBinding.addPostFrameCallback((timeStamp) {
Expand All @@ -17,6 +21,10 @@ class SmartOverlayController {

// dismiss
void dismiss() {
if (_onDismiss == null) {
return;
}

_onDismiss?.call();
}

Expand Down
8 changes: 4 additions & 4 deletions macos/Flutter/ephemeral/Flutter-Generated.xcconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// This is a generated file; do not edit or check into version control.
FLUTTER_ROOT=/Users/xdd666/Develop/SDK/flutter_sdk
FLUTTER_APPLICATION_PATH=/Users/xdd666/Develop/Github/flutter_smart_dialog
FLUTTER_ROOT=D:\Develop\SDK\flutter_sdk
FLUTTER_APPLICATION_PATH=D:\Develop\GitHub\flutter_smart_dialog
COCOAPODS_PARALLEL_CODE_SIGN=true
FLUTTER_BUILD_DIR=build
FLUTTER_BUILD_NAME=4.9.6
FLUTTER_BUILD_NUMBER=2
FLUTTER_BUILD_NAME=4.9.7
FLUTTER_BUILD_NUMBER=4
DART_OBFUSCATION=false
TRACK_WIDGET_CREATION=true
TREE_SHAKE_ICONS=false
Expand Down
8 changes: 4 additions & 4 deletions macos/Flutter/ephemeral/flutter_export_environment.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=/Users/xdd666/Develop/SDK/flutter_sdk"
export "FLUTTER_APPLICATION_PATH=/Users/xdd666/Develop/Github/flutter_smart_dialog"
export "FLUTTER_ROOT=D:\Develop\SDK\flutter_sdk"
export "FLUTTER_APPLICATION_PATH=D:\Develop\GitHub\flutter_smart_dialog"
export "COCOAPODS_PARALLEL_CODE_SIGN=true"
export "FLUTTER_BUILD_DIR=build"
export "FLUTTER_BUILD_NAME=4.9.6"
export "FLUTTER_BUILD_NUMBER=2"
export "FLUTTER_BUILD_NAME=4.9.7"
export "FLUTTER_BUILD_NUMBER=4"
export "DART_OBFUSCATION=false"
export "TRACK_WIDGET_CREATION=true"
export "TREE_SHAKE_ICONS=false"
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description:
An elegant Flutter Dialog solution,
Easily implement Toast, Loading and custom Dialog,
Make the use of the dialog easier!
version: 4.9.7+4
version: 4.9.7+5
homepage: https://github.com/fluttercandies/flutter_smart_dialog
# flutter pub publish --server=https://pub.dartlang.org
# flutter build web --release --base-href="/flutter_smart_dialog/web/"
Expand Down

0 comments on commit 9897214

Please sign in to comment.