intry 0.0.2 copy "intry: ^0.0.2" to clipboard
intry: ^0.0.2 copied to clipboard

Intry is a highly efficient and rich UI component set designed specifically for creating editor and graphic design applications.

example/lib/main.dart

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

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Intry Demo',
      theme: ThemeData(
        useMaterial3: true,
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
      ),
      home: const MyHomePage(title: 'Intry Demo'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _integerValue = 0;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Container(
        alignment: Alignment.center,
        child: Row(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            NumericIntry(
              min: 0,
              max: 100,
              divisions: 5,
              postfix: "%",
              value: _integerValue,
              onChanged: (int value) => setState(() => _integerValue = value),
            ),
            const SizedBox(width: 30),
            Text(
              'Min: 0\nMax: 100\nDivision: 5\nPostfix: "%"\nValue: $_integerValue',
              style: Theme.of(context).textTheme.titleSmall,
            ),
          ],
        ),
      ),
    );
  }
}
2
likes
0
pub points
26%
popularity

Publisher

unverified uploader

Intry is a highly efficient and rich UI component set designed specifically for creating editor and graphic design applications.

Repository (GitHub)
View/report issues

Topics

#textfield #textinput #slider #ui #ux

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on intry