#flutter
#трепетание
Вопрос:
- Я хочу создать действие с 1 нажатием для увеличения масштаба в Flutter (http://flutter.dev /) фреймворк.
- «1 нажатие для увеличения» -> проще говоря: если я нажму один раз, он увеличится.
-
Фактический результат: здесь
-
Код:
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
backgroundColor: Colors.white,
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
Container(
height: 150.0,
width: 300.0,
color: Colors.transparent,
child: Container(
decoration: BoxDecoration(
color: Colors.teal,
borderRadius:
BorderRadius.all(Radius.circular(10.0))),
child: new Center(
child: new Text(
"Salut c'est français",
style: TextStyle(color: Colors.white, fontSize: 22),
textAlign: TextAlign.right,
),
)),
),
],
))));
}
}
Заранее спасибо 🙂