dotfield 2.0.0 copy "dotfield: ^2.0.0" to clipboard
dotfield: ^2.0.0 copied to clipboard

Create a field of dots. More awesome than it sounds!

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:dotfield/dotfield.dart';
import 'package:flutter/services.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Dotfield Example App',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      debugShowCheckedModeBanner: false,
      home: MyHomePage(title: 'Demo of the Dotfield package'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    // Disable top status bar
    SystemChrome.setEnabledSystemUIOverlays([]);
    return Scaffold(
      backgroundColor: Colors.black87,
      body: DotField(
        size: MediaQuery.of(context).size,
        density: 50,
        maxLineLength: 40,
        threshold: 20,
        minSpeed: 10,
        maxSpeed: 10,
      ),
    );
  }
}
11
likes
130
points
66
downloads

Publisher

unverified uploader

Weekly Downloads

Create a field of dots. More awesome than it sounds!

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, vector_math

More

Packages that depend on dotfield