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

A customizable and modular Flutter package for building rich, flexible sliver-based UIs. Includes support for sliver app bars, sliver lists and grids, nested tab views, background images, and floating [...]

example/main.dart

import 'package:flutter/material.dart';
import 'package:app_sliver/app_sliver.dart'; // Update with actual package name/path

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'App Sliver Example',
      theme: ThemeData(primarySwatch: Colors.blue),
      home: const SliverExampleScreen(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: AppSliverWithFabButton(
        topTitle: 'App Sliver Demo',
        bottomTitle: 'Sliver Grid View',
        imageSource: 'https://picsum.photos/800/400',
        floating: true,
        pinned: true,
        snap: false,
        stretch: true,
        expandedHeight: 250,
        fabIcon: Icons.add,
        fabTop: 220.0,
        fabRight: 16.0,
        onPressedFab: () => debugPrint("FAB Pressed!"),
        body: AppSliverGrid<String>(
          listData: List.generate(20, (i) => 'Item $i'),
          child: (item) => Card(
            margin: const EdgeInsets.all(8.0),
            child: Center(child: Text(item)),
          ),
          childHeight: 4.5,
          childWidth: 2,
          crossAxisCount: 2,
          mainAxisSpacing: 8,
          crossAxisSpacing: 8,
        ),
      ),
    );
  }
}
1
likes
130
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable and modular Flutter package for building rich, flexible sliver-based UIs. Includes support for sliver app bars, sliver lists and grids, nested tab views, background images, and floating action buttons.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

app_style, bloc, flutter, flutter_bloc, reusable_icon, reusable_image_widget, reusable_list_view, reusable_tab_bar

More

Packages that depend on app_sliver