paper_card 0.0.3 copy "paper_card: ^0.0.3" to clipboard
paper_card: ^0.0.3 copied to clipboard

A paper card for Flutter. It is a card that looks like a cartoonish paper. It is customizable and you can add your texture on it.

example/lib/main.dart

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

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        fontFamily: 'darya',
      ),
      home: const Scaffold(
        body: Center(
          child: Row(
            mainAxisAlignment: MainAxisAlignment.spaceEvenly,
            children: [
              PaperCard(
                height: 200,
                width: 200,
                borderColor: Colors.red,
                backgroundColor: Color.fromARGB(255, 139, 222, 255),
                borderRadius: 25,
                borderThickness: 20,
                elevation: 2,
                padding: EdgeInsets.all(16),
                margin: EdgeInsets.all(16),
                crayonTexture: true,
                crayonAssetPath: 'assets/crayon_mask.png',
                crayonTextureBlendMode: BlendMode.overlay,
                child: Text(
                  'Hello World This is just a test text',
                  style: TextStyle(fontWeight: FontWeight.w900, fontSize: 14),
                  textDirection: TextDirection.rtl,
                ),
              ),
              PaperCard(
                height: 200,
                width: 150,
                crayonAssetPath: 'assets/crayon_mask.png',
                borderThickness: 0,
                child: Text(
                  'تست فارسی ۱: سلام دنیا',
                  style: TextStyle(fontWeight: FontWeight.bold, fontSize: 17),
                  textDirection: TextDirection.rtl,
                ),
                backgroundColor: Color(0xFFFFF9E3),
              ),
              PaperCard(
                height: 100,
                width: 200,
                borderRadius: 20,
                borderThickness: 5,
                elevation: 0,
                backgroundColor: Colors.transparent,
                child: Text(
                  'تست فارسی ۲: سلام دنیا',
                  style: TextStyle(fontWeight: FontWeight.w900, fontSize: 17),
                  textDirection: TextDirection.rtl,
                ),
              ),
              PaperCard(
                height: 100,
                width: 200,
                crayonAssetPath: 'assets/crayon_mask.png',
                child: Text(
                  'تست فارسی ۱: سلام دنیا',
                  style: TextStyle(fontWeight: FontWeight.w900, fontSize: 20),
                  textDirection: TextDirection.rtl,
                ),
                backgroundColor: Color(0xFFFFF9E3),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
4
likes
0
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

A paper card for Flutter. It is a card that looks like a cartoonish paper. It is customizable and you can add your texture on it.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, widget_mask

More

Packages that depend on paper_card