flutter_androssy 0.2.1 copy "flutter_androssy: ^0.2.1" to clipboard
flutter_androssy: ^0.2.1 copied to clipboard

outdated

Collection of service with advanced style and controlling system.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_androssy/widgets.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Androssy',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const Example(),
    );
  }
}

class Example extends StatefulWidget {
  const Example({
    super.key,
  });

  @override
  State<Example> createState() => _ExampleState();
}

class _ExampleState extends State<Example> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: LinearLayout(
        children: [
          RecyclerView(
            controller: RecyclerViewController(),
            flex: 1,
            orientation: Axis.vertical,
            padding: 24,
            scrollable: true,
            wrapper: false,
            items: List.generate(150, (index) => "Item $index"),
            snapCount: 7,
            builder: (index, item) {
              return TextView(
                padding: 40,
                gravity: Alignment.center,
                background: index.isEven ? context.primaryColor : Colors.red,
                text: item,
                paddingVertical: 3,
              );
            },
          ),
        ],
      ),
    );
  }

  Future<bool> isAvailable(String v) async {
    await Future.delayed(const Duration(seconds: 3));
    return true;
  }
}
5
likes
0
points
354
downloads

Publisher

unverified uploader

Weekly Downloads

Collection of service with advanced style and controlling system.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

badges, cached_network_image, flutter, flutter_svg, intl

More

Packages that depend on flutter_androssy