diff --git a/translate_app/android/app/src/main/AndroidManifest.xml b/translate_app/android/app/src/main/AndroidManifest.xml index 669d632..0d44d78 100644 --- a/translate_app/android/app/src/main/AndroidManifest.xml +++ b/translate_app/android/app/src/main/AndroidManifest.xml @@ -1,7 +1,7 @@ { Widget build(BuildContext context) { return Scaffold( appBar: AppBar( - title: const Text("Translator"), + title: const Text("Translator", + style: TextStyle( + color: Color.fromARGB(255, 255, 255, 255), + fontFamily: 'Alata-Regular', + fontSize: 25, + ), + ), + centerTitle: true, elevation: 0, - backgroundColor: const Color.fromARGB(255, 44, 37, 230), - ), + backgroundColor: Color.fromRGBO(11, 41, 235, 0.976), + + ), body: SingleChildScrollView( child: Container( + margin: const EdgeInsets.symmetric(horizontal: 15), + child: Column( + children: [ + // Row( + // mainAxisAlignment: MainAxisAlignment.end, + // children: [Text( + // "Row HELLO", + // style: TextStyle( + // color: const Color.fromARGB(255, 0, 0, 0), + // fontFamily: 'UbuntuMono-Regular', + // fontSize: 32, + // ), + // )],), + SizedBox( height: MediaQuery.of(context).size.height / 4, ), TextField( - decoration: InputDecoration( + decoration: InputDecoration( hintText: 'Enter the text', border: OutlineInputBorder( - borderRadius: BorderRadius.circular(5))), + borderRadius: BorderRadius.circular(3))), controller: _input, onChanged: (value) { _input.text = value; @@ -83,11 +105,11 @@ class _LanguageTranslatorState extends State { }, ), const SizedBox( - height: 10, + height: 25, ), DecoratedBox( decoration: BoxDecoration( - borderRadius: BorderRadius.circular(5), + borderRadius: BorderRadius.circular(3), border: Border.all(color: const Color.fromARGB(136, 60, 60, 60))), child: Padding( @@ -113,10 +135,10 @@ class _LanguageTranslatorState extends State { ), ), const SizedBox( - height: 10, + height: 25, ), SizedBox( - width: double.infinity, + width: 180, height: 50, child: TextButton( onPressed: () async { @@ -133,7 +155,7 @@ class _LanguageTranslatorState extends State { }, style: ButtonStyle( backgroundColor: MaterialStateProperty.all( - const Color.fromARGB(255, 44, 37, 230)), + Color.fromRGBO(11, 41, 235, 0.976)), foregroundColor: MaterialStateProperty.all(Colors.white), ), @@ -148,7 +170,7 @@ class _LanguageTranslatorState extends State { ), ), const SizedBox( - height: 20, + height: 0, ), Visibility( visible: result.isNotEmpty, diff --git a/translate_app/pubspec.yaml b/translate_app/pubspec.yaml index e858a3a..f335097 100644 --- a/translate_app/pubspec.yaml +++ b/translate_app/pubspec.yaml @@ -85,17 +85,19 @@ flutter: # "family" key with the font family name, and a "fonts" key with a # list giving the asset and other descriptors for the font. For # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # + fonts: + - family: Alata-Regular + fonts: + - asset: fonts/Alata-Regular.ttf + + # - asset: fonts/Schyler-Italic.ttf + # style: italic + - family: UbuntuMono-Regular + fonts: + - asset: fonts/UbuntuMono-Regular.ttf + # - asset: fonts/UbuntuMono-Bold.ttf + weight: 700 + + # For details regarding fonts from package dependencies, # see https://flutter.dev/custom-fonts/#from-packages