Create Stack Using OR in Flutter

Create Stack Using OR in Flutter :

Create Stack Using OR in Flutter :In this flutter tutorial i will show you how to create stack using OR in flutter

Screenshot :

Create Stack Using OR in Flutter
Stack(
      children: <Widget>[
        Align(
          alignment: Alignment.center,
          child: Divider(
            color: Colors.black,
          ),
        ),
        Align(
          alignment: Alignment.center,
          child: Container(
            color: Colors.white,
            child: Padding(
              padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 0),
              child: Text(
                'Or'
              ),
            ),
          ),
        )
      ],
    )

Program 2 : OR Screenshot

Create Stack Using OR in Flutter

Or.dart

 Stack(alignment: Alignment.center, children: <Widget>[
                  Container(
                    height: 2,
                    decoration: BoxDecoration(
                        gradient: LinearGradient(stops: [
                      .3,
                      .5,
                      .7
                    ], colors: [
                      Colors.transparent,
                      Colors.black,
                      Colors.transparent,
                    ])),
                  ),
                  Container(
                    color: Colors.white,
                    width: 40,
                    child: Text(
                      "OR",
                      textAlign: TextAlign.center,
                    ),
                  ),
                ]),

The flutter tutorial  is a website that bring you the latest and amazing resources of code. All the languages codes are included in this website. The languages like flutter, android, java,kotlin etc.with the help of this languages any user can develop the beautiful application

For more information about Flutter. visit www.fluttertutorial.in