title_widget 0.4.5 copy "title_widget: ^0.4.5" to clipboard
title_widget: ^0.4.5 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
160
pub points
37%
popularity
screenshot

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
Contributing

Topics

#title #glass #effects #clip #widget

Documentation

API reference

License

MIT (license)

Dependencies

flutter, glass

More

Packages that depend on title_widget