alertx 1.0.0 copy "alertx: ^1.0.0" to clipboard
alertx: ^1.0.0 copied to clipboard

A widget to show alert box by overlay, which can show or hide easily.

example/main.dart

import 'package:alex/alex.dart';
/// create by 张风捷特烈 on 2020/9/22
/// contact me by email 1981462002@qq.com
/// 说明:

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


void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: Scaffold(
            appBar: AppBar(),
            body: Center(
              child: Alex(
                offset: Offset(-10,5),
                  alex: LimitedBox(
                    maxWidth: 200,
                    child: Wrapper(
                      color: Color(0xff95EC69),
                      spineType: SpineType.top,
                      child: Container(
                        child: Text("张风捷特烈 "*10),
                      ),
                    ),
                  ),
                  child: Container(
                    width: 20,
                    height: 20,
                    decoration: BoxDecoration(
                        color: Colors.green, shape: BoxShape.circle),
                  )),
            )));
  }
}
0
likes
40
pub points
0%
popularity

Publisher

verified publishertoly1994.com

A widget to show alert box by overlay, which can show or hide easily.

Homepage

License

MIT (LICENSE)

Dependencies

flutter, wrapper

More

Packages that depend on alertx