Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- void main() => runApp(MyApp());
- class MyApp extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- title: 'Flutter Demo',
- debugShowCheckedModeBanner: false,
- theme: ThemeData(
- primarySwatch: Colors.blue,
- ),
- home: Scaffold(
- appBar: AppBar(title: Text("App Bar")),
- body: Column(
- children: <Widget>[
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Text("Product Name"),
- ),
- SizedBox(
- height: 250,
- child: PageView(
- children: <Widget>[
- Card(
- child: Center(
- child: Text("1"),
- ),
- ),
- Card(
- child: Center(
- child: Text("2"),
- ),
- ),
- ],
- ),
- )
- ],
- ),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement