flutter_androssy_kits 1.0.13 copy "flutter_androssy_kits: ^1.0.13" to clipboard
flutter_androssy_kits: ^1.0.13 copied to clipboard

Collection of androssy_widgets with advanced styling and customization.

example/lib/main.dart

import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
import 'package:flutter_androssy_kits/flutter_androssy_kits.dart';
import 'package:flutter_svg/flutter_svg.dart';

import 'gesture.dart';

void main() {
  Androssy.init(
    textConverter: (context, value) {
      return "This is translated value [$value]";
    },
    cachedNetworkImageBuilder: (context, config) {
      return CachedNetworkImage(imageUrl: config.imageUrl);
    },
    svgBuilder: (context, config) {
      switch (config.source) {
        case AndrossySvgSource.asset:
          return SvgPicture.asset(config.assetName);
        case AndrossySvgSource.file:
          return SvgPicture.file(config.file);
        case AndrossySvgSource.memory:
          return SvgPicture.memory(config.bytes);
        case AndrossySvgSource.network:
          return SvgPicture.network(config.url);
        case AndrossySvgSource.string:
          return SvgPicture.string(config.string);
      }
    },
  );
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Androssy Kits',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
        buttonTheme: ButtonThemeData(
          padding: const EdgeInsets.only(
            left: 24,
            right: 20,
            top: 12,
            bottom: 12,
          ),
          colorScheme: ColorScheme.fromSeed(
            seedColor: Colors.blue,
            primary: Colors.blue,
            secondary: Colors.blue.withOpacity(0.1),
            tertiary: Colors.grey.shade200,
            onPrimary: Colors.white,
            onSecondary: Colors.blue,
            onTertiary: Colors.black38,
          ),
        ),
      ),
      home: const GestureExample(),
    );
  }
}
3
likes
140
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

Collection of androssy_widgets with advanced styling and customization.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on flutter_androssy_kits