floatingActionButtonAnimator

floatingActionButtonAnimator

MaterialApp({ title,theme, home: Scaffold({ appBar, body, floatingActionButton, floatingActionButtonLocation, floatingActionButtonAnimator, persistentFooterButtons, drawer, endDrawer, bottomNavigationBar, bottomSheet, backgroundColor, resizeToAvoidBottomPadding, resizeToAvoidBottomInset }), })

açıklama

FloatingActionButton öğesini yeni bir floatingActionButtonLocation öğesine taşımak için animatör.

konum

MaterialApp({ title,theme, home: Scaffold({ appBar, body, floatingActionButtonAnimator,...}), })

parametreler

MaterialApp({ 
				title,
				theme,
				home: Scaffold({ 
									appBar,
									body, 
									floatingActionButton,
									floatingActionButtonLocation,
									floatingActionButtonAnimator,
									persistentFooterButtons,
									drawer,
									endDrawer,
									bottomNavigationBar,
									bottomSheet,
									backgroundColor,
									resizeToAvoidBottomPadding,
									resizeToAvoidBottomInset..
							    }),
			})

örnek uygulama

Center-ornek
 

import 'package:flutter/material.dart';

void main() => runApp(OrnekWidget());

class OrnekWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Uygulama Adı',
      theme: ThemeData(primaryColorLight: Colors.blue),
      home: Scaffold(
        appBar: AppBar(
          title: Text("Padding Örnek Uygulama"),
        ),
        body: Padding(
          padding: EdgeInsets.only(left:120.0), //alt widgeti soldan 120 değerinde iter
          child: Text('Padding() widget child widgeti belirtilen yönde içeri doğru iter'),
        ),
      ),
    );
  }
}

Bir cevap yazın

KAPAT
%d blogcu bunu beğendi: