Skip to main content

responsive_annotation 0.0.3 copy "responsive_annotation: ^0.0.3" to clipboard
responsive_annotation: ^0.0.3 copied to clipboard

discontinued
outdated

Annotations that supports responsive code generation via the `responsive_config` package.

example/example.dart

import 'package:flutter/material.dart';

import 'package:responsive_annotation/responsive_annotation.dart';

part 'example.g.dart';

@ResponsiveConfig()
abstract class Example {
  const Example({
    required this.margin,
    required this.title,
  });

  factory Example.of(BuildContext context) => _$ResponsiveExample.of(context);

  @ResponsiveVariable<double>(
    mobile: 32,
    tablet: 64,
    laptop: 96,
    desktop: 128,
    widescreen: 256,
  )
  final double margin;

  @ResponsiveVariable<String>(
    mobile: 'Mobile',
    tablet: 'Tablet',
    laptop: 'Laptop',
    desktop: 'Desktop',
    widescreen: 'Widescreen',
  )
  final String title;
}
2
likes
0
points
15
downloads

Publisher

verified publishereterkit.com

Weekly Downloads

Annotations that supports responsive code generation via the `responsive_config` package.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, meta

More

Packages that depend on responsive_annotation