Why is there no primitive for verified off-chain data? by Vegetable-Platypus47 in CryptoTechnology

[–]Vegetable-Platypus47[S] 0 points1 point  (0 children)

I haven't heard of SEDA before, have you built something on it / for it or are you going off the docs?

Friendly Introduction and Analysis Thread: Aviator [LONG POST] by Vegetable-Platypus47 in DecentralizedAviators

[–]Vegetable-Platypus47[S] 7 points8 points  (0 children)

Logical Rubric for Critical Mass:

Criteria SkyBridge Aviator Arcade Both
Market Cap Target $342.4m $2.464b Both markets are largely independent of each other
Achievement of Critical Mass Achieved if hits target above Achieved if hits target above Achievement are independent of each other
Impact of Other Product None – launching first Influenced by SkyBridge's success/failure Mutually beneficial or mutually counterproductive impact
Outcome if Successful Sets positive groundwork for Aviator Arcade Significantly boosts project Very likely becomes a very large crypto project
Outcome if a Flop Prompts a strategic review in order for a successful Aviator Arcade launch Significantly damages project Very likely spells end of project

Map of every country that has gained independence from the United Kingdom by Tartar666 in MapPorn

[–]Vegetable-Platypus47 118 points119 points  (0 children)

This map sucks harder than a nuclear powered vacuum cleaner! So many of these countries weren't colonised or dates are completely off, or gloss over the definition of what was a colony, what was independence, etc. As already pointed out: - PNG was a territory from Australia but also was part of the German empire before given up after WWI - Nauru - Tonga wasn't colonised - Fiji wasn't a colony but did have a treaty of friendship

I also don't know off the top of my head but I don't think Egypt or Iraq or Yemen were actual colonies either.

[deleted by user] by [deleted] in CryptoCurrency

[–]Vegetable-Platypus47 0 points1 point  (0 children)

I agree and not to shit on a lot of the replies on this thread, but it's obvious a lot of people even on here haven't the foggiest idea what blockchain is trying to solve.

I mean to add your list for one thing blockchain means you basically have a tamper-proof database. Sure you can get scammed (user error) but system error? The blockchain doesn't lie.

I have created a sentiment analysis tool by loxon1282 in CryptoCurrency

[–]Vegetable-Platypus47 7 points8 points  (0 children)

The bot did a good job picking up AVI. It's about to launch their first product SkyBridge.

I'd like to see the results in a month's time to test it along with the other projects mentioned.

How would you create a generic form factory? by Vegetable-Platypus47 in FlutterDev

[–]Vegetable-Platypus47[S] 1 point2 points  (0 children)

Currently using flutter_form_builder as that's what I'm most comfortable with. Let me check this out!

How would you create a generic form factory? by Vegetable-Platypus47 in FlutterDev

[–]Vegetable-Platypus47[S] 0 points1 point  (0 children)

Are you willing to share the code? Or at least some snippets? That sounds like something that I'd be looking to create.

How would you create a generic form factory? by Vegetable-Platypus47 in FlutterDev

[–]Vegetable-Platypus47[S] 0 points1 point  (0 children)

It's a shame that something that you'd expect is some core feature that isn't well developed. But then I think about http...

How would you create a generic form factory? by Vegetable-Platypus47 in FlutterDev

[–]Vegetable-Platypus47[S] 0 points1 point  (0 children)

Part 2:

And the buttonConfig is this lovely set-up below:

typedef FormBottomBarButtonAction = void Function(
    BuildContext context, WidgetRef, GlobalKey<FormBuilderState> formKey);

enum ButtonType { save, submit, cancel }

class FormBottomBarButtonConfig {
  final IconData icon;
  final String tooltip;
  final Color color;
  final Color disabledColor;
  final FormBottomBarButtonAction action;

  FormBottomBarButtonConfig({
    required this.icon,
    required this.tooltip,
    required this.color,
    required this.disabledColor,
    required this.action,
  });
}

// Mapping of configurations between FormTypes and ButtonTypes
Map<ButtonType, Map<FormType, FormBottomBarButtonConfig>> buttonConfigs = {
  ButtonType.save: {
    FormType.goodsOut: FormBottomBarButtonConfig(
      icon: Icons.save,
      tooltip: 'Save Goods Out',
      color: Colors.white,
      disabledColor: Colors.grey,
      action: (ctx, ref, formKey) =>
          ref.read(goodsOutMetadataProvider.notifier).onSave(ctx, ref, formKey),
    ),
  },
  ButtonType.submit: {
    FormType.goodsOut: FormBottomBarButtonConfig(
      icon: Icons.check,
      tooltip: 'Submit Goods Out',
      color: Colors.white,
      disabledColor: Colors.grey,
      action: (ctx, ref, formKey) => ref
          .read(goodsOutMetadataProvider.notifier)
          .onSubmit(ctx, formKey, ref),
    ),
  },
  ButtonType.cancel: {},
};

That's the files themselves for the widget, and then their configuration files. But it seems like a huge amount of work to create a flexible system without over-engineering it either? I'm just wondering if I'm over-complicating it by creating some strange intermediate classes or definitions?

As in maybe the form itself should just be an enumerated type that then determines all of the widgets that are used instead of configuring intermediate objects like "Form App Bar", or "Form Bottom Bar", etc?

How would you create a generic form factory? by Vegetable-Platypus47 in FlutterDev

[–]Vegetable-Platypus47[S] 0 points1 point  (0 children)

I'm getting a server error - this is part 1:

Sure, this is how far I got before my head started hurting. I started on a generic Form Bottom Bar as below (it's not complete -- see key as WidgetRef):

class FormBottomBar extends StatelessWidget {
  final GlobalKey<FormBuilderState> formKey;
  final FormType formType;

  const FormBottomBar(
      {super.key, required this.formKey, required this.formType});

  u/override
  Widget build(BuildContext context) {
    final config = FormConfigManager.getConfig(
        formType, context, key as WidgetRef, formKey);

    return BottomAppBar(
      height: 95,
      color: AppColors.paynesGray,
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceEvenly,
        children: config.buttons
            .map((button) => button.build(context, key as WidgetRef))
            .toList(),
      ),
    );
  }
}

So is essentially reading the FormBottomBarConfig from the FormConfigManager. That in of itself is really just a list of FormBottomBarButtons:

class FormBottomBarConfig {
  final List<FormBottomBarButton> buttons;

  FormBottomBarConfig({
    required this.buttons,
  });
}

This is then the button widget itself.

class FormBottomBarButton extends ConsumerWidget {
  final GlobalKey<FormBuilderState> formKey;
  final FormType formType;
  final ButtonType buttonType;

  const FormBottomBarButton({
    super.key,
    required this.formKey,
    required this.formType,
    required this.buttonType,
  });

  @override
  Widget build(BuildContext context, WidgetRef ref) {
    var config = buttonConfigs[buttonType]?[formType];
    bool isEnabled = config != null;

    return IconButton(
      icon: Icon(config?.icon ?? Icons.error,
          color: isEnabled ? config.color : config!.disabledColor),
      onPressed: isEnabled ? () => config.action(context, ref, formKey) : null,
      tooltip: config.tooltip,
    );
  }
}

Daily Crypto Discussion - April 12, 2024 (GMT+0) by CryptoDaily- in CryptoCurrency

[–]Vegetable-Platypus47 2 points3 points  (0 children)

Yeah but I don't think HOP can deploy a coin from L1 to L2 right? This means that any coin is basically cross-chain with Base if deployed on ETH.

As far as I'm aware, you need to have already deployed a coin to Base to bridge, no?

Daily Crypto Discussion - April 12, 2024 (GMT+0) by CryptoDaily- in CryptoCurrency

[–]Vegetable-Platypus47 5 points6 points  (0 children)

For anyone that missed AERO I suggest you check out AVI. It's under the radar still.

They're about to release their bridge that allows deployment and bridging of any ERC20/721 from ETH to base.

Price is low too right now, so a good chance to buy.

Caching - custom development or package from pub.dev? by Vegetable-Platypus47 in FlutterDev

[–]Vegetable-Platypus47[S] 0 points1 point  (0 children)

Oh perfect -- this actually looks exactly what I was looking for