Qries

Subscribe Us

Advertisement

Slimy Card

 

Code:

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

class SlimyCard3 extends StatefulWidget {
  @override
  _SlimyCard3State createState() => _SlimyCard3State();
}

class _SlimyCard3State extends State<SlimyCard3> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Padding(
          padding: const EdgeInsets.only(top: 30),
          child: SlimyCard(
            borderRadius: 10,
            color: Colors.red.shade900,
            width: 300,
            topCardHeight: 300,
            bottomCardHeight: 150,
            topCardWidget: Text(
              'customize as you wish...',
              style: TextStyle(
                fontSize: 20,
                fontWeight: FontWeight.bold,
                color: Colors.white.withOpacity(.85),
              ),
            ),
            bottomCardWidget: Text(
              'customize as you wish...',
              style: TextStyle(
                fontSize: 20,
                fontWeight: FontWeight.bold,
                color: Colors.white.withOpacity(.85),
              ),
            ),
          ),
        ),
      ),
    );
  }
}

Post a Comment

0 Comments