Commit d29370ec authored by dio maulana's avatar dio maulana

save

parent 250c8b27
import 'package:carousel_slider/carousel_slider.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class MainPages extends StatefulWidget { class MainPages extends StatefulWidget {
...@@ -61,23 +62,23 @@ class _MainPagesState extends State<MainPages> { ...@@ -61,23 +62,23 @@ class _MainPagesState extends State<MainPages> {
], ],
), ),
), ),
Align( // Align(
alignment: Alignment.centerLeft, // alignment: Alignment.centerLeft,
child: Container( // child: Container(
margin: EdgeInsets.fromLTRB(30, 10, 10, 30), // margin: EdgeInsets.fromLTRB(30, 10, 10, 30),
width: 200, // width: 200,
height: 300, // height: 300,
padding: EdgeInsets.all(3), // padding: EdgeInsets.all(3),
child: ClipRRect( // child: ClipRRect(
borderRadius: BorderRadius.circular(35), // borderRadius: BorderRadius.circular(35),
child: Image( // child: Image(
image: NetworkImage( // image: NetworkImage(
"https://repository-images.githubusercontent.com/31792824/fb7e5700-6ccc-11e9-83fe-f602e1e1a9f1"), // "https://repository-images.githubusercontent.com/31792824/fb7e5700-6ccc-11e9-83fe-f602e1e1a9f1"),
fit: BoxFit.cover, // fit: BoxFit.cover,
), // ),
), // ),
), // ),
) // )
], ],
) )
], ],
......
...@@ -15,6 +15,13 @@ packages: ...@@ -15,6 +15,13 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.0" version: "2.1.0"
carousel_slider:
dependency: "direct main"
description:
name: carousel_slider
url: "https://pub.dartlang.org"
source: hosted
version: "2.3.4"
characters: characters:
dependency: transitive dependency: transitive
description: description:
......
...@@ -34,6 +34,7 @@ dependencies: ...@@ -34,6 +34,7 @@ dependencies:
# The following adds the Cupertino Icons font to your application. # The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons. # Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2 cupertino_icons: ^1.0.2
carousel_slider: ^2.3.1
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
......
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