halo 0.1.2 copy "halo: ^0.1.2" to clipboard
halo: ^0.1.2 copied to clipboard

Personal flutter all-in-one package.

example/lib/main.dart

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

void main() {
  _test();
  runApp(const MainApp());
}

void _test() {
  final source = {
    "a": 1,
    2: "3",
  };
  final json = HF.json(source);
  print(json);

  final list = [
    {"a": 1},
    {2: 3, "2": 4},
  ];
  final jsonArray = HF.jsonArray(list);
  print(jsonArray);
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Text('Hello World!'),
        ),
        floatingActionButton: FloatingActionButton(
          onPressed: _test,
          child: Text('Test'),
        ),
      ),
    );
  }
}
1
likes
0
points
423
downloads

Publisher

unverified uploader

Weekly Downloads

Personal flutter all-in-one package.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, flutter

More

Packages that depend on halo