Commit 1c73af8e authored by Nicolas Richard Walter Boeckh's avatar Nicolas Richard Walter Boeckh 💬

Small modifications for clean code.

parent 5d9a987f
......@@ -22,7 +22,7 @@ class LogAirApplication extends StatelessWidget {
return MaterialApp(
localizationsDelegates: [
const InternalLocalizationDelegate(),
const AppLocalizationDelegate(),
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
],
......
......@@ -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
),
......
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
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment