title_widget 0.4.2 copy "title_widget: ^0.4.2" to clipboard
title_widget: ^0.4.2 copied to clipboard

A widget for visualizing a customizable title with glass effect, gradient, rounded corners or/and free shape.

example/lib/main.dart

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

void main() => runApp(const App());

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

  Widget get background =>
      RectClipperView(child: Image.asset('assets/images/1.webp'));

  Widget get title => RectGlassTitle(
        text: 'Forgotten Dreams',
        effectOptions: const GlassEffectOptions(blur: (12, 2)),
        textColor: Colors.white,
      );

  Widget get icon => Padding(
        padding: const EdgeInsets.only(top: 240),
        child: RectGlassTitle(
          widget: const Icon(Icons.hiking, color: Colors.white),
          effectOptions: const GlassEffectOptions(blur: (12, 2)),
        ),
      );

  @override
  Widget build(BuildContext context) => MaterialApp(
        home: Scaffold(
          backgroundColor: Colors.black,
          body: Center(
            child: Stack(
              alignment: Alignment.center,
              children: [background, icon, title],
            ),
          ),
        ),
        debugShowCheckedModeBanner: false,
      );
}
4
likes
0
pub points
37%
popularity

Publisher

verified publishersyrokomskyi.com

A widget for visualizing a customizable title with glass effect, gradient, rounded corners or/and free shape.

Repository (GitHub)
View/report issues

Topics

#title #glass #effects #clip #widget

License

unknown (license)

Dependencies

flutter, glass

More

Packages that depend on title_widget