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

A Flutter package to create a Fractal Art with multiple drawing types such as Turtle Graphic and Mathematics. It will be useful for your awesome app.

example/lib/main.dart

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

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Romantic Developer',
      theme: ThemeData(
        primarySwatch: Colors.deepPurple,
      ),
      home: HomePage(),
    );
  }
}

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

class _HomePageState extends State<HomePage> {
  bool isLoading = true;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.black,
      appBar: PreferredSize(
        preferredSize: Size.fromHeight(kToolbarHeight),
        child: Container(
          decoration: BoxDecoration(
            gradient: LinearGradient(
              colors: RomanticColor.rainbowColorList(20),
              begin: Alignment.centerLeft,
              end: Alignment.centerRight,
            ),
          ),
          child: AppBar(
            backgroundColor: Colors.transparent,
            title: Text('Romantic Developer'),
          ),
        ),
      ),
      body: Column(
        crossAxisAlignment: CrossAxisAlignment.stretch,
        mainAxisAlignment: MainAxisAlignment.spaceAround,
        children: [
          Center(
            child: Text(
              '$ChakraLoadingIndicator',
              style: TextStyle(color: Colors.white, fontSize: 24),
            ),
          ),
          ChakraLoadingIndicator(),
          Center(
            child: Text(
              '$SlinkyLoadingIndicator',
              style: TextStyle(color: Colors.white, fontSize: 24),
            ),
          ),
          SlinkyLoadingIndicator(),
        ],
      ),
    );
  }
}
9
likes
130
pub points
30%
popularity

Publisher

verified publisherromanticdeveloper.com

A Flutter package to create a Fractal Art with multiple drawing types such as Turtle Graphic and Mathematics. It will be useful for your awesome app.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_fractal