Skip to content

Commit 9a5b39c

Browse files
erro troca de tema corrigido e README atualizado
1 parent 42b85d9 commit 9a5b39c

File tree

3 files changed

+37
-72
lines changed

3 files changed

+37
-72
lines changed

README.md

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
# appbasepe
1+
# Flutter ChangeTheme with Internationalization
22

3-
A new Flutter project.
3+
A Flutter Project with theme change and internationalization.
44

5-
## Getting Started
5+
## To run this example:
66

7-
This project is a starting point for a Flutter application.
7+
- Clone this repo
8+
- Install dependencies
9+
- Run in device or simulator with Android or iOS
810

9-
A few resources to get you started if this is your first Flutter project:
11+
---
1012

11-
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12-
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13+
<br />
1314

14-
For help getting started with Flutter, view our
15-
[online documentation](https://flutter.dev/docs), which offers tutorials,
16-
samples, guidance on mobile development, and a full API reference.
15+
![rn-acessibilidade](https://user-images.githubusercontent.com/29188043/96664789-ec102500-1329-11eb-903a-ceee08f450ba.gif)

lib/data/custom_theme_data.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@ final ligth = ThemeData(
77
visualDensity: VisualDensity.adaptivePlatformDensity,
88
colorScheme: ThemeData().colorScheme.copyWith(
99
onPrimary: Color(0xFF303030),
10+
brightness: Brightness.light,
1011
),
1112
);
1213

1314
final dark = ThemeData(
1415
primaryColor: Color(0xFF0e3507),
1516
scaffoldBackgroundColor: Color(0xFF091F18),
1617
cardColor: Color(0xFF113026),
17-
brightness: Brightness.dark,
1818
visualDensity: VisualDensity.adaptivePlatformDensity,
1919
colorScheme: ThemeData().colorScheme.copyWith(
2020
onPrimary: Color(0xFFFFFFFF),
21+
brightness: Brightness.dark,
2122
),
2223
);
2324

pubspec.lock

+26-61
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,62 @@
11
# Generated by pub
22
# See https://dart.dev/tools/pub/glossary#lockfile
33
packages:
4-
archive:
5-
dependency: transitive
6-
description:
7-
name: archive
8-
url: "https://pub.dartlang.org"
9-
source: hosted
10-
version: "2.0.13"
11-
args:
12-
dependency: transitive
13-
description:
14-
name: args
15-
url: "https://pub.dartlang.org"
16-
source: hosted
17-
version: "1.6.0"
184
async:
195
dependency: transitive
206
description:
217
name: async
228
url: "https://pub.dartlang.org"
239
source: hosted
24-
version: "2.4.1"
10+
version: "2.4.2"
2511
boolean_selector:
2612
dependency: transitive
2713
description:
2814
name: boolean_selector
2915
url: "https://pub.dartlang.org"
3016
source: hosted
3117
version: "2.0.0"
32-
charcode:
18+
characters:
3319
dependency: transitive
3420
description:
35-
name: charcode
21+
name: characters
3622
url: "https://pub.dartlang.org"
3723
source: hosted
38-
version: "1.1.3"
39-
collection:
24+
version: "1.0.0"
25+
charcode:
4026
dependency: transitive
4127
description:
42-
name: collection
28+
name: charcode
4329
url: "https://pub.dartlang.org"
4430
source: hosted
45-
version: "1.14.12"
46-
convert:
31+
version: "1.1.3"
32+
clock:
4733
dependency: transitive
4834
description:
49-
name: convert
35+
name: clock
5036
url: "https://pub.dartlang.org"
5137
source: hosted
52-
version: "2.1.1"
53-
crypto:
38+
version: "1.0.1"
39+
collection:
5440
dependency: transitive
5541
description:
56-
name: crypto
42+
name: collection
5743
url: "https://pub.dartlang.org"
5844
source: hosted
59-
version: "2.1.4"
45+
version: "1.14.13"
6046
cupertino_icons:
6147
dependency: "direct main"
6248
description:
6349
name: cupertino_icons
6450
url: "https://pub.dartlang.org"
6551
source: hosted
6652
version: "0.1.3"
53+
fake_async:
54+
dependency: transitive
55+
description:
56+
name: fake_async
57+
url: "https://pub.dartlang.org"
58+
source: hosted
59+
version: "1.1.0"
6760
flutter:
6861
dependency: "direct main"
6962
description: flutter
@@ -79,13 +72,6 @@ packages:
7972
description: flutter
8073
source: sdk
8174
version: "0.0.0"
82-
image:
83-
dependency: transitive
84-
description:
85-
name: image
86-
url: "https://pub.dartlang.org"
87-
source: hosted
88-
version: "2.1.12"
8975
intl:
9076
dependency: transitive
9177
description:
@@ -99,7 +85,7 @@ packages:
9985
name: matcher
10086
url: "https://pub.dartlang.org"
10187
source: hosted
102-
version: "0.12.6"
88+
version: "0.12.8"
10389
meta:
10490
dependency: transitive
10591
description:
@@ -120,28 +106,14 @@ packages:
120106
name: path
121107
url: "https://pub.dartlang.org"
122108
source: hosted
123-
version: "1.6.4"
124-
petitparser:
125-
dependency: transitive
126-
description:
127-
name: petitparser
128-
url: "https://pub.dartlang.org"
129-
source: hosted
130-
version: "2.4.0"
109+
version: "1.7.0"
131110
provider:
132111
dependency: "direct main"
133112
description:
134113
name: provider
135114
url: "https://pub.dartlang.org"
136115
source: hosted
137116
version: "4.1.3"
138-
quiver:
139-
dependency: transitive
140-
description:
141-
name: quiver
142-
url: "https://pub.dartlang.org"
143-
source: hosted
144-
version: "2.1.3"
145117
sky_engine:
146118
dependency: transitive
147119
description: flutter
@@ -160,7 +132,7 @@ packages:
160132
name: stack_trace
161133
url: "https://pub.dartlang.org"
162134
source: hosted
163-
version: "1.9.3"
135+
version: "1.9.5"
164136
stream_channel:
165137
dependency: transitive
166138
description:
@@ -188,28 +160,21 @@ packages:
188160
name: test_api
189161
url: "https://pub.dartlang.org"
190162
source: hosted
191-
version: "0.2.15"
163+
version: "0.2.17"
192164
typed_data:
193165
dependency: transitive
194166
description:
195167
name: typed_data
196168
url: "https://pub.dartlang.org"
197169
source: hosted
198-
version: "1.1.6"
170+
version: "1.2.0"
199171
vector_math:
200172
dependency: transitive
201173
description:
202174
name: vector_math
203175
url: "https://pub.dartlang.org"
204176
source: hosted
205177
version: "2.0.8"
206-
xml:
207-
dependency: transitive
208-
description:
209-
name: xml
210-
url: "https://pub.dartlang.org"
211-
source: hosted
212-
version: "3.6.1"
213178
sdks:
214-
dart: ">=2.7.0 <3.0.0"
179+
dart: ">=2.9.0-14.0.dev <3.0.0"
215180
flutter: ">=1.16.0"

0 commit comments

Comments
 (0)