diff --git a/android/app/src/main/kotlin/com/example/base_converter/MainActivity.kt b/android/app/src/main/kotlin/com/example/base_converter/MainActivity.kt index 18aeda3..555e191 100644 --- a/android/app/src/main/kotlin/com/example/base_converter/MainActivity.kt +++ b/android/app/src/main/kotlin/com/example/base_converter/MainActivity.kt @@ -1,4 +1,4 @@ -package com.example.base_converter +package com.emamaker.base_converter import io.flutter.embedding.android.FlutterActivity diff --git a/lib/calculations.dart b/lib/calculations.dart index b14f3ca..b3a6b41 100644 --- a/lib/calculations.dart +++ b/lib/calculations.dart @@ -94,7 +94,6 @@ String baseToDecimal(String number, String pBase) { n += number[i + 2]; n += number[i + 3]; String n1 = baseToDecimal(n, "2"); - print(n1); if (int.parse(n1) > 9) return "error-bcd-greater-nine"; res += n1; } diff --git a/lib/main.dart b/lib/main.dart index c9d0cd0..7ea71c7 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -143,17 +143,17 @@ class _MyHomePageState extends State { "Error: a digit is greater than or equal to the base"); case "": return RichText( - text: TextSpan( + text: const TextSpan( text: '', - style: DefaultTextStyle.of(context).style, - children: const [], + style: TextStyle(decoration: TextDecoration.none), + children: [], ), ); default: return RichText( text: TextSpan( text: '', - style: DefaultTextStyle.of(context).style, + style: const TextStyle(decoration: TextDecoration.none), children: [ mainNumber(_controller.text), baseSubtitle("($savedFromBase)"), @@ -169,13 +169,13 @@ class _MyHomePageState extends State { return RichText( text: TextSpan( text: '', - style: DefaultTextStyle.of(context).style, + style: const TextStyle(decoration: TextDecoration.none), children: [ TextSpan( text: content, style: const TextStyle( color: Colors.black, - fontSize: 12, + fontSize: 16, fontWeight: FontWeight.normal, fontFamily: "Roboto")), ],