zoom_sliver_app_bar 0.0.1 copy "zoom_sliver_app_bar: ^0.0.1" to clipboard
zoom_sliver_app_bar: ^0.0.1 copied to clipboard

An effortlessly implementable silver app bar. Simply import and it's ready to go. Its smoothly scaling animation and dynamic title font resizing enhance user-friendliness and convenience.

example/main.dart

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

void main() {
  runApp(const MaterialApp(
    home: MyApp(),
    debugShowCheckedModeBanner: false,
  ));
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      body: Container(
        padding: EdgeInsets.only(top: MediaQuery.of(context).padding.top),
        child: NestedScrollView(
          headerSliverBuilder: (context, innerBoxIsScrolled) {
            return [
              const ZoomSliverAppBarWidget(
                title: "ប្រាសាទ អង្គរវត្ត",
                maxTitleSize: 32,
                minTitleSize: 16,
              ),
            ];
          },
          body: Padding(
            padding: const EdgeInsets.symmetric(horizontal: 16),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                const Text(
                  "អច្ឆរិយៈវត្ថុរបស់ពិភពលោក ដែលត្រូវបានសាងសង់ឡើងក្នុងស.វទី១២",
                  style: TextStyle(
                    fontSize: 14,
                  ),
                ),
                Expanded(
                  child: ListView.builder(
                    physics: const BouncingScrollPhysics(),
                    itemBuilder: (context, index) => Container(
                      margin: const EdgeInsets.only(bottom: 16),
                      padding: const EdgeInsets.all(16),
                      decoration: BoxDecoration(
                        color: Colors.amber.withOpacity(.4),
                        borderRadius: const BorderRadius.all(Radius.circular(8)),
                      ),
                      child: const Text(
                        'ប្រាសាទ អង្គរវត្ត',
                      ),
                    ),
                  ),
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
4
likes
0
points
34
downloads

Publisher

verified publishersivhongdeab.com

Weekly Downloads

An effortlessly implementable silver app bar. Simply import and it's ready to go. Its smoothly scaling animation and dynamic title font resizing enhance user-friendliness and convenience.

Repository (GitLab)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on zoom_sliver_app_bar