Button in flutter

Button in flutter

 

ElevatedButton(
          onPressed: () => {},
          child: Container(
            width: 200,
            child: Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                Icon(Icons.lock_open),
                SizedBox(width: 10),
                Text("P R E S S"),
              ],
            ),
          ),
        ),
        const SizedBox(height: 20),
        OutlinedButton(
          onPressed: () => {},
          child: Container(
            width: 200,
            child: Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                Icon(Icons.lock_open),
                SizedBox(width: 10),
                Text("P R E S S"),
              ],
            ),
          ),
        ),
        const SizedBox(height: 20),
        InkWell(
          onTap: () => {print("Pressed")},
          child: Container(
            decoration: BoxDecoration(
              color: Colors.deepPurple.shade400,
              borderRadius: const BorderRadius.only(
                topLeft: Radius.circular(30),
                bottomRight: Radius.circular(30),
              ),
            ),
            width: 200,
            height: 50,
            child: Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: const [
                Icon(
                  Icons.lock_open,
                  color: Colors.white,
                ),
                SizedBox(width: 10),
                Text(
                  "P R E S S",
                  style: TextStyle(
                    color: Colors.white,
                  ),
                ),
              ],
            ),
          ),
        ),



Post a Comment

Previous Post Next Post