This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:math'; | |
import 'package:flutter/material.dart'; | |
class Dims { | |
const Dims._(); | |
static Size designSize = const Size(390, 844); | |
static late Size deviceSize; | |
static void setSize(MediaQueryData media) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final bodyHeight =MediaQuery.of(context).size.height - (MediaQuery.of(context).padding.top + kToolbarHeight); | |
LengthLimitingTextInputFormatter(100)// | |
WillPopScope( | |
onWillPop: () async => Navigator.push( | |
context, MaterialPageRoute(builder: (context) => AppLayout())), | |
//adding shadow | |
Container( | |
height: 70, | |
decoration: BoxDecoration( | |
boxShadow: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ignore_for_file: use_key_in_widget_constructors | |
import 'dart:math'; | |
import 'package:flutter/material.dart'; | |
class Dims { | |
const Dims._(); | |
// the app was designed on an iphone frame with w:h = 390:844 | |
static Size designSize = const Size(393, 845.33); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.8.0; | |
contract Token { | |
string public name = "Manuel"; | |
string public symbol = "MKPA"; | |
uint256 public totalSupply = 1000000; | |
uint256 public decimals = 18; | |
mapping(address => uint256) balances; | |
constructor() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated by pub | |
# See https://dart.dev/tools/pub/glossary#lockfile | |
packages: | |
_fe_analyzer_shared: | |
dependency: transitive | |
description: | |
name: _fe_analyzer_shared | |
url: "https://pub.dartlang.org" | |
source: hosted | |
version: "47.0.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.8.13; | |
contract StableCoin { | |
// Properties | |
string public name; | |
string public symbol; | |
uint256 public totalSupply; | |
// Mapping of addresses to their token balances | |
mapping(address => uint256) public balances; |