mpwt_loading 0.0.3 copy "mpwt_loading: ^0.0.3" to clipboard
mpwt_loading: ^0.0.3 copied to clipboard

This package is only use for my workplace.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:mpwt_loading/mpwt_loading.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const GetMaterialApp(
      home: Home(),
    );
  }
}


class Home extends StatelessWidget {
  const Home({super.key});

  @override
  Widget build(BuildContext context) {
    MPWTLoading loading = Get.put(MPWTLoading(context));
    return Scaffold(
      body: Column(
        children: [
          TextButton(
            onPressed: () {
              loading.show();
            }, 
            child: const Text('Pleas show Loading')),
          TextButton(onPressed: () {
            loading.removeLoading();
          }, child: const Text('Pleas hide Loading'))
        ],
      ),
    );
  }
}
2
likes
0
pub points
0%
popularity

Publisher

unverified uploader

This package is only use for my workplace.

License

unknown (LICENSE)

Dependencies

flutter, get

More

Packages that depend on mpwt_loading