intry 0.3.2 copy "intry: ^0.3.2" to clipboard
intry: ^0.3.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.dark(),
      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> {
  String _textValue = "Test";
  double _numericValue = 10;

  @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>[
            Column(
              children: [
                const SizedBox(height: 10),
                const Text("IntryTextField"),
                const SizedBox(height: 20),
                IntryTextField(
                  value: _textValue,
                  formatter: "« %s »",
                  decoration: IntryFieldDecoration.outline(context),
                  onChanged: (String value) =>
                      setState(() => _textValue = value),
                ),
                const SizedBox(height: 40),
                Text(
                  'Value: "$_textValue"\nFormatter: "« %s »"\nDecoration: Outline',
                  style: Theme.of(context).textTheme.labelSmall,
                ),
              ],
            ),
            const SizedBox(width: 80),
            Column(
              children: [
                const SizedBox(height: 10),
                const Text("IntryNumericField"),
                const SizedBox(height: 20),
                IntryNumericField(
                  min: 0,
                  max: 100,
                  divisions: 5,
                  formatter: "%sMB",
                  value: _numericValue,
                  onChanged: (double value) =>
                      setState(() => _numericValue = value),
                ),
                const SizedBox(height: 40),
                Text(
                  'Min: 0\nValue: $_numericValue\nMax: 100\nDivision: 5\nFormatter: "%sMB"',
                  style: Theme.of(context).textTheme.labelSmall,
                ),
              ],
            ),
          ],
        ),
      ),
    );
  }
}
2
likes
150
pub points
27%
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
API reference

License

MIT (LICENSE)

Dependencies

flutter, math_parser, reflectable

More

Packages that depend on intry