Skip to content
Snippets Groups Projects
Select Git revision
  • c4bdceaf4f9d2f044e09c4fa91e5120683b55715
  • master default protected
  • WIP-buggy-mywallets-riverpod
  • polkadart-stuff
  • provider-to-riverpod
  • implementLightnode
  • hugo_RML16
  • refactorOnboardingSlideshow
  • duniterV1Latest
  • scanNetwork
  • dubp_rs
  • v0.2.17+140
  • v0.2.16+139
  • v0.2.16+138
  • v0.2.15+137
  • v0.2.14+134
  • v0.2.13+133
  • v0.2.13+132
  • v0.2.12+131
  • v0.2.11+130
  • v0.2.10+129
  • v0.2.9+128
  • v0.2.8+127
  • v0.2.7+125
  • v0.2.6+124
  • v0.2.5+123
  • v0.2.4+122
  • v0.2.3+119
  • v0.2.2+118
  • v0.2.1+113
  • polkawallet-sdk-latest
31 results

ud_unit_display.dart

Blame
  • ud_unit_display.dart 1.25 KiB
    import 'package:easy_localization/easy_localization.dart';
    import 'package:flutter/material.dart';
    import 'package:gecko/globals.dart';
    
    class UdUnitDisplay extends StatelessWidget {
      const UdUnitDisplay({
        super.key,
        required this.size,
        required this.color,
        this.fontWeight = FontWeight.normal,
      });
    
      final double size;
      final Color color;
      final FontWeight fontWeight;
      @override
      Widget build(BuildContext context) {
        final bool isUdUnit = configBox.get('isUdUnit') ?? false;
        return isUdUnit
            ? Row(
                mainAxisAlignment: MainAxisAlignment.end,
                children: [
                  Text(
                    'ud'.tr(args: ['']),
                    style: TextStyle(fontSize: size, color: color, fontWeight: fontWeight),
                  ),
                  Column(
                    mainAxisAlignment: MainAxisAlignment.center,
                    children: [
                      Text(
                        currencyName,
                        style: TextStyle(fontSize: size * 0.65, fontWeight: fontWeight, color: color),
                      ),
                      const SizedBox(height: 15)
                    ],
                  )
                ],
              )
            : Text(currencyName, style: TextStyle(fontSize: size, color: color, fontWeight: fontWeight));
      }
    }