Skip to content

Commit

Permalink
Merge pull request #12 from Hash-Studios/update-packages
Browse files Browse the repository at this point in the history
Update packages
  • Loading branch information
codenameakshay committed Oct 28, 2021
2 parents 4e475fe + 1c1ab98 commit 770f7d6
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 52 deletions.
13 changes: 8 additions & 5 deletions app/lib/main.dart
@@ -1,5 +1,6 @@
import 'package:app/screens/home.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

void main() {
runApp(Home());
Expand All @@ -8,10 +9,12 @@ void main() {
class Home extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData(primarySwatch: Colors.amber),
color: Colors.grey,
home: MyApp());
return ScreenUtilInit(
designSize: Size(720, 1440),
builder: () => MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData(primarySwatch: Colors.amber),
color: Colors.grey,
home: MyApp()));
}
}
4 changes: 3 additions & 1 deletion app/lib/screens/code.dart
Expand Up @@ -19,7 +19,9 @@ class CodeBD extends StatefulWidget {
class _CodeBDState extends State<CodeBD> {
@override
Widget build(BuildContext context) {
ScreenUtil.init(context, width: 720, height: 1440, allowFontScaling: true);
// ScreenUtil.init(
// BoxConstraints(minHeight: 1440, minWidth: 720),
// );
return DefaultTabController(
length: 3,
child: BackdropScaffold(
Expand Down
1 change: 0 additions & 1 deletion app/lib/screens/home.dart
Expand Up @@ -121,7 +121,6 @@ class _MyAppState extends State<MyApp> {

@override
Widget build(BuildContext context) {
ScreenUtil.init(context, height: 1440, width: 720, allowFontScaling: true);
numbers.shuffle();
return Scaffold(
backgroundColor: Colors.grey[300],
Expand Down
89 changes: 62 additions & 27 deletions app/pubspec.lock
Expand Up @@ -14,7 +14,7 @@ packages:
name: backdrop
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.14"
version: "0.6.2"
boolean_selector:
dependency: transitive
description:
Expand Down Expand Up @@ -57,34 +57,41 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.15.0"
convert:
dependency: transitive
description:
name: convert
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
crypto:
dependency: transitive
description:
name: crypto
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
version: "3.0.1"
cupertino_icons:
dependency: "direct main"
description:
name: cupertino_icons
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3"
version: "1.0.3"
fake_async:
dependency: transitive
description:
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
ffi:
dependency: transitive
description:
name: ffi
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.2"
file:
dependency: transitive
description:
name: file
url: "https://pub.dartlang.org"
source: hosted
version: "6.1.2"
flutter:
dependency: "direct main"
description: flutter
Expand All @@ -96,14 +103,14 @@ packages:
name: flutter_screenutil
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "5.0.0+2"
flutter_syntax_view:
dependency: "direct main"
description:
name: flutter_syntax_view
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
version: "4.0.0"
flutter_test:
dependency: "direct dev"
description: flutter
Expand All @@ -120,35 +127,35 @@ packages:
name: fluttertoast
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.1"
version: "8.0.8"
font_awesome_flutter:
dependency: "direct main"
description:
name: font_awesome_flutter
url: "https://pub.dartlang.org"
source: hosted
version: "8.8.1"
version: "9.2.0"
google_fonts:
dependency: "direct main"
description:
name: google_fonts
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
version: "2.1.0"
http:
dependency: transitive
description:
name: http
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.1"
version: "0.13.4"
http_parser:
dependency: transitive
description:
name: http_parser
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.4"
version: "4.0.0"
js:
dependency: transitive
description:
Expand Down Expand Up @@ -183,42 +190,56 @@ packages:
name: path_provider
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.7"
version: "2.0.6"
path_provider_linux:
dependency: transitive
description:
name: path_provider_linux
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
path_provider_macos:
dependency: transitive
description:
name: path_provider_macos
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.4+2"
version: "2.0.2"
path_provider_platform_interface:
dependency: transitive
description:
name: path_provider_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
pedantic:
version: "2.0.1"
path_provider_windows:
dependency: transitive
description:
name: pedantic
name: path_provider_windows
url: "https://pub.dartlang.org"
source: hosted
version: "1.9.0"
version: "2.0.3"
platform:
dependency: transitive
description:
name: platform
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.1"
version: "3.0.2"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
version: "2.0.2"
process:
dependency: transitive
description:
name: process
url: "https://pub.dartlang.org"
source: hosted
version: "4.2.4"
sky_engine:
dependency: transitive
description: flutter
Expand Down Expand Up @@ -280,6 +301,20 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
win32:
dependency: transitive
description:
name: win32
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.10"
xdg_directories:
dependency: transitive
description:
name: xdg_directories
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.0"
sdks:
dart: ">=2.12.0 <3.0.0"
flutter: ">=1.12.13+hotfix.5"
dart: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
27 changes: 9 additions & 18 deletions app/pubspec.yaml
Expand Up @@ -3,7 +3,7 @@ description: A new Flutter project.

# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
publish_to: "none" # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
Expand All @@ -21,31 +21,25 @@ environment:
sdk: ">=2.7.0 <3.0.0"

dependencies:
backdrop: ^0.6.2
clipboard_manager: ^0.0.4
cupertino_icons: ^1.0.3
flutter:
sdk: flutter
google_fonts: ^1.0.0
backdrop: ^0.2.14
flutter_screenutil: ^1.1.0
flutter_syntax_view: ^1.0.0
font_awesome_flutter: ^8.8.1
clipboard_manager: ^0.0.4
fluttertoast: ^4.0.1


# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.3
flutter_screenutil: ^5.0.0+2
flutter_syntax_view: ^4.0.0
fluttertoast: ^8.0.8
font_awesome_flutter: ^9.2.0
google_fonts: ^2.1.0

dev_dependencies:
flutter_test:
sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
Expand All @@ -55,13 +49,10 @@ flutter:
assets:
- assets/images/
# - images/a_dot_ham.jpeg

# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.

# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages

# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
Expand Down

0 comments on commit 770f7d6

Please sign in to comment.