Skip to content

Commit

Permalink
Update detail.dart
Browse files Browse the repository at this point in the history
   ClipRRect(
                  borderRadius:
                      const BorderRadius.vertical(bottom: Radius.circular(30)),

sadece altk kısma border radius.circular ekler
  • Loading branch information
gulsenkeskin committed Jan 23, 2022
1 parent 3c8f17d commit d4c3ac9
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions lib/src/page/detail/detail.dart
Original file line number Diff line number Diff line change
@@ -1,15 +1,32 @@
import 'package:book_app/src/model/book.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class DetailPage extends StatelessWidget {
final Book book;
const DetailPage(this.book,{Key? key}) : super(key: key);
const DetailPage(this.book, {Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(

body: ListView(
padding: EdgeInsets.zero,
children: [
SizedBox(
height: 550,
child: Stack(
fit: StackFit.expand,
children: [
ClipRRect(
borderRadius:
const BorderRadius.vertical(bottom: Radius.circular(30)),
child: Image.asset(book.imgUrl!,
fit: BoxFit.fitWidth,),
),
],
),
)
],
),
);
}
Expand Down

0 comments on commit d4c3ac9

Please sign in to comment.