slikker_kit 1.0.8 copy "slikker_kit: ^1.0.8" to clipboard
slikker_kit: ^1.0.8 copied to clipboard

Slikker Kit is a Flutter package which provides Slikker Design System components.

example/lib/main.dart

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

void main() => runApp(SlikkerExampleApp());

Color getColor(double a, double h, double s, double v) => HSVColor.fromAHSV(a, h, s, v).toColor();

class SlikkerExampleApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Slikker App Example',
      theme: ThemeData(fontFamily: 'Manrope'),
      home: HomePage(),
    );
  }
}

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  final double accent = 240;
  int count = 0;

  @override
  Widget build(BuildContext context) {
    return SlikkerScaffold(
      content: Container(),
      topButton: TopButton(
        action: () => setState(() => count = 0),
        icon: Icons.clear,
        title: 'Clear',
      ),
      title: 'Example',
      floatingButton: SlikkerCard(
        accent: accent,
        borderRadius: BorderRadius.circular(50),
        child: Text('Tap!'),
        onTap: () => setState(() => count++),
        padding: EdgeInsets.all(17),
      ),
      header: Padding(
        padding: EdgeInsets.symmetric(horizontal: 30),
        child: SlikkerCard(
            accent: accent,
            padding: EdgeInsets.fromLTRB(20, 12, 12, 12),
            child: Row(children: [
              Text('Button taps:', style: TextStyle(fontSize: 17, color: getColor(1, accent, 0.4, 0.4))),
              Expanded(child: Container()),
              SlikkerCard(
                accent: 240,
                isFloating: false,
                borderRadius: BorderRadius.circular(8),
                padding: EdgeInsets.symmetric(horizontal: 17, vertical: 10),
                child: Text(count.toString(), style: TextStyle(fontSize: 15, color: getColor(1, accent, 0.4, 0.4))),
              ),
            ])),
      ),
    );
  }
}
4
likes
150
points
27
downloads

Publisher

verified publisheroleksii.xyz

Weekly Downloads

Slikker Kit is a Flutter package which provides Slikker Design System components.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on slikker_kit