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

outdated

create a card have glassmorphism style.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:glassmorphismcard/glassmorphismcard.dart';
import 'dart:ui';

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Test(),
    );
  }
}

class Test extends StatefulWidget {
  @override
  TestState createState() => TestState();
}

class TestState extends State<Test> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        height: double.infinity,
        width: double.infinity,
        child: Stack(
          children: [
            Image.network(
              'https://images.unsplash.com/photo-1522205408450-add114ad53fe?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=368f45b0888aeb0b7b08e3a1084d3ede&auto=format&fit=crop&w=1950&q=80',
              fit: BoxFit.cover,
              height: double.infinity,
              width: double.infinity,
              scale: 1,
            ),
            SafeArea(
              child: Center(
                child: GlassmorphismCard(
                  backgroundColor: Colors.blue,
                  title: Padding(
                    padding: const EdgeInsets.only(left: 15),
                    child: Text(
                      'Hello world',
                      style: TextStyle(
                          color: Colors.white,
                          fontSize: 30,
                          fontWeight: FontWeight.bold),
                    ),
                  ),
                  body: Align(
                      alignment: Alignment.bottomRight,
                      child: Image.network(img)),
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
2
likes
0
pub points
34%
popularity

Publisher

unverified uploader

create a card have glassmorphism style.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on glassmorphismcard