modal_progress_hud icon indicating copy to clipboard operation
modal_progress_hud copied to clipboard

Migrate to null safety please?

Open atebitftw opened this issue 3 years ago • 16 comments

:)

atebitftw avatar Mar 04 '21 01:03 atebitftw

Alternative to this package is this loading_overlay.

Mayb3Nots avatar Mar 17 '21 16:03 Mayb3Nots

Alternative to this package is this loading_overlay.

right link > loading_overlay

FelipeFernandesLeandro avatar Mar 18 '21 15:03 FelipeFernandesLeandro

Alternative to this package is this loading_overlay.

right link > loading_overlay

Ahhh yes my bad, edited my link to the right one. Thanks!

Mayb3Nots avatar Mar 18 '21 15:03 Mayb3Nots

Any news?

EgHubs avatar Mar 28 '21 12:03 EgHubs

@EgHubs I found that someone published a null-safe version of the same package here: https://pub.dev/packages/modal_progress_hud_nsn

atebitftw avatar Mar 30 '21 18:03 atebitftw

https://pub.dev/packages/modal_progress_hud_nsn is not a good alternative because it only supports iOS and Android. I just created a null-safety clone of this package which as it is a clone it has support for all flutter supported platforms not only for Android and iOS. Here: modal_progress_hud_alt

I also made a PR40

luis901101 avatar Apr 16 '21 17:04 luis901101

@mmcc007 Any timeline on merging the null safety PR? Appreciate your work, and that of @luis901101 !

bkoznov avatar Jun 21 '21 21:06 bkoznov

In my case Loading_Overlay also didn't worked , please don't try that ....That too ( Loading Overlay) does not support Null Safety Watch this

Lakhankumawat avatar Jun 27 '21 13:06 Lakhankumawat

The amount of code necessary for this plugin to work is just a few lines, I recommend for those who needs some specific behavior to checkout at the source code at https://github.com/luis901101/modal_progress_hud_alt which is alreeady null-safe and copy from there. It is literally a widget.

luis901101 avatar Jun 27 '21 13:06 luis901101

@Lakhankumawat what version are you using it on? Because loading_overlay is on null safety and I'm using it right now. Please check your configuration.

Mayb3Nots avatar Jun 27 '21 16:06 Mayb3Nots

Thanks to @luis901101 for his modal_progress_hud_alt it worked in my case after using lots of loading progress indicator. Thanks again @luis901101 . You are awesome

Lakhankumawat avatar Jun 28 '21 03:06 Lakhankumawat

this is the null safety version

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

class ModalProgressHUD extends StatelessWidget {
  final bool inAsyncCall;
  final double opacity;
  final Color color;
  final Widget progressIndicator;
  Offset? offset;
  final bool dismissible;
  final Widget child;

  ModalProgressHUD({
    Key? key,
    required this.inAsyncCall,
    this.opacity = 0.3,
    this.color = Colors.grey,
    this.progressIndicator = const CircularProgressIndicator(),
    this.offset,
    this.dismissible = false,
    required this.child,
  })  : assert(child != null),
        assert(inAsyncCall != null),
        super(key: key);

  @override
  Widget build(BuildContext context) {
    if (!inAsyncCall) return child;

    Widget layOutProgressIndicator;
    if (offset == null)
      layOutProgressIndicator = Center(child: progressIndicator);
    else {
      layOutProgressIndicator = Positioned(
        child: progressIndicator,
        left: offset!.dx,
        top: offset!.dy,
      );
    }

    return new Stack(
      children: [
        child,
        new Opacity(
          child: new ModalBarrier(dismissible: dismissible, color: color),
          opacity: opacity,
        ),
        layOutProgressIndicator,
      ],
    );
  }
}
`

neelayak avatar Sep 07 '21 09:09 neelayak

https://pub.dev/packages/blurry_modal_progress_hud/versions/1.0.1

joeyyy688 avatar Oct 23 '21 18:10 joeyyy688

Is this repo abandoned by the original maintainers?

joseph-fox avatar Nov 01 '21 14:11 joseph-fox

Is this repo abandoned by the original maintainers?

yes, Its been a while since it was updated. Anyways feel free to check this out. It's an upgraded one

joeyyy688 avatar Nov 01 '21 14:11 joeyyy688

@mmcc007 you ok? Can you please push this update?

dpedrinha avatar Nov 04 '21 14:11 dpedrinha