flutter_custom_cards 0.0.2 copy "flutter_custom_cards: ^0.0.2" to clipboard
flutter_custom_cards: ^0.0.2 copied to clipboard

outdated

New Flutter package which helps developers to create beautiful custom cards.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter_Custom_Cards Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: CustomCardsExample(),
    );
  }
}

class CustomCardsExample extends StatefulWidget {
  @override
  _CustomCardsExampleState createState() => _CustomCardsExampleState();
}

class _CustomCardsExampleState extends State<CustomCardsExample> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Flutter_Custom_Cards Example'),
      ),
      body: Column(
        children: [
          //Just  Call CustomCards Widget
          CustomCards(
            text: 'Card1',
            childPadding: 12,
            fontSize: 28,
          ),

          CustomCards(
            text: 'Card2',
            childPadding: 12,
            fontSize: 28,
            color: Colors.green,
            textColor: Colors.white,
          ),

          CustomCards(
            text: 'Card3',
            childPadding: 12,
            fontSize: 28,
            color: Colors.blue,
            textColor: Colors.white,
          ),
        ],
      ),
    );
  }
}
17
likes
0
pub points
81%
popularity

Publisher

verified publisherstudentmitra.in

New Flutter package which helps developers to create beautiful custom cards.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_custom_cards