diff --git a/translate_app/README.md b/translate_app/README.md index 0eb197e..15d6d72 100644 --- a/translate_app/README.md +++ b/translate_app/README.md @@ -1,16 +1,36 @@ -# translate_app +# Project Name -A new Flutter project. +Short project description or tagline -## Getting Started +## Table of Contents -This project is a starting point for a Flutter application. +- [Description](#description) +- [Installation](#installation) +- [Usage](#usage) +- [Contributing](#contributing) +- [External Resources](#external-resources) +- [Additional Notes](#additional-notes) -A few resources to get you started if this is your first Flutter project: +## Description -- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) -- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) +A brief and clear overview of the project, including its purpose, features, and any important information. -For help getting started with Flutter development, view the -[online documentation](https://docs.flutter.dev/), which offers tutorials, -samples, guidance on mobile development, and a full API reference. +## Installation + +Step-by-step instructions on how to install the project, including any dependencies or setup steps. You may include commands or links to detailed installation guides if needed. + +## Usage + +Provide examples or code snippets demonstrating how to use the project. This section should cover basic usage scenarios and may include screenshots if applicable. + +## Contributing + +Guidelines for contributing to the project, including how to report issues, submit feature requests, and guidelines for code contributions. Encourage others to get involved and provide clear instructions on how they can contribute. + +## External Resources + +Links to any external documentation, related projects, or helpful resources. Ensure that all links are working and up-to-date. + +## Additional Notes + +Any additional information or notes that are relevant to the project, such as coding style conventions, branding guidelines, or acknowledgments. diff --git a/translate_app/android/app/src/main/AndroidManifest.xml b/translate_app/android/app/src/main/AndroidManifest.xml index 42a7410..0d44d78 100644 --- a/translate_app/android/app/src/main/AndroidManifest.xml +++ b/translate_app/android/app/src/main/AndroidManifest.xml @@ -1,7 +1,7 @@ { ); } } + + + + + + + + + +class SplashScreen extends StatefulWidget { + const SplashScreen({super.key}); + + @override + State createState() => _SplashScreenState(); +} + +class _SplashScreenState extends State with SingleTickerProviderStateMixin { + + @override + void initState() { + super.initState(); + SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive); + Future.delayed(Duration(seconds: 2), () { + Navigator.of(context).pushReplacement( + MaterialPageRoute(builder: (_) => LanguageTranslator()), // Navigate to LanguageTranslator screen + ); + }); + } + + + @override + void dispose() { + SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,overlays: SystemUiOverlay.values); + super.dispose(); + } + + + + + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Container( + width: double.infinity, + decoration: const BoxDecoration( + gradient: LinearGradient( + colors: [ + Color.fromARGB(255, 252, 253, 254), + Color.fromARGB(255, 0, 0, 0), + // Colors.red, + ], + begin: Alignment.topRight, + end: Alignment.bottomLeft, + ), + ), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: const[ + Icon( + Icons.book, + size: 80, + color: Colors.white, + ), + SizedBox(height: 40), + Text( + 'Welcome to Translate app', + style: TextStyle( + fontStyle: FontStyle.italic, + color: Colors.white, + fontSize: 32, + ), + ), + ], + ), + ), + ); + } +} diff --git a/translate_app/lib/screens/splash_screen.dart b/translate_app/lib/screens/splash_screen.dart new file mode 100644 index 0000000..e69de29 diff --git a/translate_app/pubspec.lock b/translate_app/pubspec.lock index d82b4f7..9ff7097 100644 --- a/translate_app/pubspec.lock +++ b/translate_app/pubspec.lock @@ -1,6 +1,14 @@ # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: + animated_splash_screen: + dependency: "direct dev" + description: + name: animated_splash_screen + sha256: f45634db6ec4e8cf034c53e03f3bd83898a16fe3c9286bf5510b6831dfcf2124 + url: "https://pub.dev" + source: hosted + version: "1.3.0" archive: dependency: transitive description: @@ -187,6 +195,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.9.1" + page_transition: + dependency: transitive + description: + name: page_transition + sha256: dee976b1f23de9bbef5cd512fe567e9f6278caee11f5eaca9a2115c19dc49ef6 + url: "https://pub.dev" + source: hosted + version: "2.1.0" path: dependency: transitive description: diff --git a/translate_app/pubspec.yaml b/translate_app/pubspec.yaml index f5a25e3..e858a3a 100644 --- a/translate_app/pubspec.yaml +++ b/translate_app/pubspec.yaml @@ -44,6 +44,7 @@ dev_dependencies: flutter_test: sdk: flutter flutter_launcher_icons: "^0.13.1" + animated_splash_screen: flutter_launcher_icons: android: "launcher_icon"