Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Maya Boeckh
LogAir_Application_XOS
Commits
1c73af8e
Commit
1c73af8e
authored
Feb 20, 2020
by
Maya Boeckh
💬
Browse files
Small modifications for clean code.
parent
5d9a987f
Changes
4
Hide whitespace changes
Inline
Side-by-side
lib/main.dart
View file @
1c73af8e
...
...
@@ -22,7 +22,7 @@ class LogAirApplication extends StatelessWidget {
return
MaterialApp
(
localizationsDelegates:
[
const
Internal
LocalizationDelegate
(),
const
App
LocalizationDelegate
(),
GlobalMaterialLocalizations
.
delegate
,
GlobalWidgetsLocalizations
.
delegate
,
],
...
...
lib/ui/carousel_card.dart
View file @
1c73af8e
...
...
@@ -21,7 +21,7 @@ class CarouselCard extends StatelessWidget {
decoration:
BoxDecoration
(
color:
Colors
.
white
,
border:
Border
.
all
(
color:
Colors
.
grey
.
shade500
),
borderRadius:
BorderRadius
.
only
(
topLeft:
Radius
.
circular
(
4
),
topRight:
Radius
.
circular
(
4
),
bottomLeft:
Radius
.
circular
(
40
),
bottomRight:
Radius
.
circular
(
40
)),
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
4
)),
),
child:
child
),
...
...
lib/ui/map_widget.dart
View file @
1c73af8e
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:logair_application/ui/carousel_card.dart'
;
class
MapWidget
extends
StatelessWidget
{
...
...
@@ -7,7 +9,16 @@ class MapWidget extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
Widget
widget
=
Center
(
child:
Text
(
"Map"
,
style:
TextStyle
(
fontFamily:
"Consolas"
,
fontSize:
22
)));
Widget
widget
=
Center
(
child:
Text
(
"Map"
,
style:
TextStyle
(
fontFamily:
"Consolas"
,
fontSize:
22
)
)
);
return
CarouselCard
(
child:
widget
,
color:
Colors
.
red
);
}
}
\ No newline at end of file
lib/ui/social_widget.dart
View file @
1c73af8e
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:logair_application/ui/carousel_card.dart'
;
class
SocialWidget
extends
StatelessWidget
{
...
...
@@ -7,7 +9,16 @@ class SocialWidget extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
Widget
widget
=
Center
(
child:
Text
(
"Social"
,
style:
TextStyle
(
fontFamily:
"Consolas"
,
fontSize:
22
)));
Widget
widget
=
Center
(
child:
Text
(
"Social"
,
style:
TextStyle
(
fontFamily:
"Consolas"
,
fontSize:
22
),
),
);
return
CarouselCard
(
child:
widget
,
color:
Colors
.
yellow
);
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment